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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top