Data Grid View

ADO DOT NET

Centurion
Joined
Dec 20, 2006
Messages
160
Hi,
I have a data grid view as shown here.
I just want to get the email address of selected row in string!
email address in 3rd column, but I could not find how to get it, I mixed some commands and searched MSDN, but couldn't do this simple task!:(
 

Attachments

Anohter question on datagridviews here. Anyone know how to ensure that a row is visible? I have searched for a command to do it for waaay too long now. I'm thinking it might not be possible.
ListView's have EnsureVisible. I need something like that if it exists.
 
Nah .Visible only makes sure the row is visible if you scroll to it.

Lets say you have 500 rows on a datagridview. You want the user to see row 450, but you're currently are only displaying rows 0-50 because the datagridview is only so big. Now listviews have a command called .ensurevisible that will scroll to the row you want to make sure is visible to the user. Datagridview must not have something like this, even though it's extremely useful. So, from code, I cant show the user row 450, or so it seems.
 
Back
Top