datagrid item selection

  • Thread starter Thread starter Eddie B.
  • Start date Start date
E

Eddie B.

How do you return the value of a row selected from the datagrid using c#?
All that is displayed in intellisense is IsSelected which returns if a
specific row is selected.

Thanks!
 
Eddie B. said:
How do you return the value of a row selected from the datagrid using c#?

DataRow dr =
((DataRowView)BindingContext[MyDataGrid.DataSource].Current).Row;
 
Back
Top