DataView, BindingContext

R

Rakesh

Using the BindingContext we will be able to find the
actual position of the row selected in a DataView
(regardless of the sort used).

What I want to do is exactly the reverse. That is, I know
the actual position of the row in the BindingContext, and
from that I want to know the position of the same in a
dataview/datagrid. Is this possible?

The reason why I want to do this is becuase of the
following scenario:
I have a dataview, with AllowNew false. I have a datagrid
bound to this dataview. I insert new rows
programmatically. Once a new row is inserted I want the
datagrid to select that new row, regardless of the sort
used. But I know only the actual position of the row in
the BindingContext, and not the position in the datagrid,
(which is required for selecting).

Thanks in advance,
Rakesh
 

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