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

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 ?
 

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

Top