feurich Posted March 9, 2009 Posted March 9, 2009 Hi There, Is there a way af determining which row is selected in the DataGridView_KeyDown event? I need to know this because the first row is a search row and the other rows are display rows. So if the user want to search he/she adds information in the first row and hits enter to search the database. OK, Hope this is clear enough. Quote Trust the Universe
feurich Posted March 10, 2009 Author Posted March 10, 2009 Found it! You can access the selectedRowIndex with the following: DataGridView1.CurrentRow.Index Sometimes it is so simple :D Sometimes you look for something that is right in front of your nose. Thanks for the patience. hciruef Quote Trust the Universe
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.