HOW TO GET PARTICULAR CELL VALUE IN DEVEXPRESS GRIDCONTROL USING WPF

Hugh Jackman

Total Post:52

Points:366
Posted by  Hugh Jackman
WPF 
WPF
 5798  View(s)
Ratings:
Rate this:

How to get particular cell value in DevExpress GridControl using wpf

  1. shreesh chandra shukla

    Post:105

    Points:735
    Re: How to get particular cell value in DevExpress GridControl using wpf

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!