How to get particular cell value in DevExpress GridControl using wpf

Total Post:51

Points:359

WPF 
WPF
 6938  View(s)
Ratings:
Rate this:

How to get particular cell value in DevExpress GridControl using wpf

  1. 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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.