470,647 Members | 1,188 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

Bound DataBoundGridRow table index number

Hi,

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

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

Thanks

Jon
Oct 12 '06 #1
3 1715
MMA
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

"Bishman" wrote:
Hi,

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

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

Thanks

Jon
Oct 12 '06 #2
MMA
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

"Bishman" wrote:
Hi,

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

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

Thanks

Jon
Oct 12 '06 #3
Thanks for That.

I'll give it a go !

Jon.
"MMA" <MM*@discussions.microsoft.comwrote in message
news:C1**********************************@microsof t.com...
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

"Bishman" wrote:
>Hi,

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

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

Thanks

Jon

Oct 12 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Raed Sawalha | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.