Bound DataBoundGridRow table index number

  • Thread starter Thread starter Bishman
  • Start date Start date
B

Bishman

Hi,

Simple question.... I think....

How can I establish the TableRow index that a particular DataGridViewRow is
bound to ?

Thanks

Jon
 
You may want to start off with the DataBoundItem property of the
DataGridViewRow and cast that to a DataRow or to the row of the typed dataset
if you are using one. With the datarow on hand you can work off from that to
decipher the row #

Hope this helps

Thanks
 
You may want to start with getting the DataBoundItem of the DataGridViewItem,
then cast it to a DataRow or a row of the TypeDataSet if you are using one.
Then work off from your DataRow to get the index.

Hope this helps

Thanks
 
Thanks for That.

I'll give it a go !

Jon.


MMA said:
You may want to start with getting the DataBoundItem of the
DataGridViewItem,
then cast it to a DataRow or a row of the TypeDataSet if you are using
one.
Then work off from your DataRow to get the index.

Hope this helps

Thanks
 

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

Similar Threads


Back
Top