ADO DOT NET Posted March 15, 2007 Posted March 15, 2007 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!:( Quote
OMID SOFT Posted March 16, 2007 Posted March 16, 2007 DataGridView.CurrentRow.Cells.Item(2).Value.ToString Quote Don't ask what your country can do for you, ask what you can do for your country...
NeuralJack Posted March 16, 2007 Posted March 16, 2007 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. Quote Currently Using: Visual Basic.Net 2005, .Net Framework 2.0
OMID SOFT Posted March 17, 2007 Posted March 17, 2007 DataGridView.Rows(index As Integer).Visible Quote Don't ask what your country can do for you, ask what you can do for your country...
NeuralJack Posted March 17, 2007 Posted March 17, 2007 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. Quote Currently Using: Visual Basic.Net 2005, .Net Framework 2.0
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.