Home > DeveloperSection > Forums > How to get particular cell value in DevExpress GridControl using wpf
Hugh Jackman
Hugh Jackman

Total Post:52

Points:366
Posted on    August-08-2013 7:43 AM

 WPF WPF 
Ratings:


 1 Reply(s)
 4813  View(s)
Rate this:

How to get particular cell value in DevExpress GridControl using wpf



shreesh chandra shukla
shreesh chandra shukla

Total Post:105

Points:735
Posted on    August-09-2013 6:51 AM

Hi!

You can write below code under the PreviewMouseLeftButtonUp event.

TableViewHitInfo hit= tableView1.CalcHitInfo(e.OriginalSource as DependencyObject);

if(hit.InRowCell)

var row=gridControl.GetFocusedRow();
data _data=(data)row;
        if(hit.Column.FieldName==”Name”)
{
MessageBox.Show(_data.Name.ToString());
}
}

thanks.


Modified On Aug-09-2013 06:55:20 AM

Don't want to miss updates? Please click the below button!

Follow MindStick