how to: bindingSource.Current <=> DataTable.Row

  • Thread starter Thread starter ja
  • Start date Start date
J

ja

What's the best wayto get dataRow when I have
bindingsource.Current item. I use :

myTableRow=
((MyDataSet.MyTableRow)((DataRowView)(MyBindingSource.Current)).Row)

It works, but it doesn't nice to me.

And in the other way:
I have dataRow and i want to find position of this row in my DataSet. I
use:

MyBindingSource.Position = MyBindingSource.Find("id", myTableRow.id);

May be there is an easier way ?
 
Back
Top