Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!:(

Posted

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.

Currently Using: Visual Basic.Net 2005, .Net Framework 2.0
Posted

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.

Currently Using: Visual Basic.Net 2005, .Net Framework 2.0

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...