By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,783 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,783 IT Pros & Developers. It's quick & easy.

DataGridView - Row Selected

P: n/a
What method will return which row is currently being edited in a grid?
Feb 2 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I was hoping this would work:

int rowNumber;
rowNumber = scriptDataGridView.CurrentRow();
"Chris" wrote:
What method will return which row is currently being edited in a grid?
Feb 2 '07 #2

P: n/a
DataGridView.CurrentRow returns the row of the selected cell

"Chris" wrote:
What method will return which row is currently being edited in a grid?
Feb 2 '07 #3

P: n/a
Thanks. By using the messagebox.show I see this returns a string with the
ndex number in curly brackets like {index=1}. Then I have to parse this I
guess?
There is no method to just get the int row number?
"dkaatz" wrote:
DataGridView.CurrentRow returns the row of the selected cell

"Chris" wrote:
What method will return which row is currently being edited in a grid?
Feb 2 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.