471,089 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Get index in datagridview

Hi

I have an app with an datagrid that I will replace with a datagridview
controll.
In the old datagrid I could use

datagrid.currentrowIndex to get the index value for the current datarow,
but I'm not able to find anything similar for the datagridview controll. Any
ideas, anyone?

/A.
Jan 17 '07 #1
1 1793
Try:

dataGridView.CurrentCell.RowIndex
or
dataGridView.CurrentCellAddress.Y

Tony

"Andy" wrote:
Hi

I have an app with an datagrid that I will replace with a datagridview
controll.
In the old datagrid I could use

datagrid.currentrowIndex to get the index value for the current datarow,
but I'm not able to find anything similar for the datagridview controll. Any
ideas, anyone?

/A.
Jan 18 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by DraguVaso | last post: by
1 post views Thread by Lars Erik Nes | last post: by
reply views Thread by Bob Develd | last post: by
1 post views Thread by =?Utf-8?B?QnJpYW5ESA==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.