R
Ron
I have a VB.NET project that is using the .NET Datagrid. I am
populating it via an ADO.NET Dataset. I was tentative about using the
Datagrid until I witnessed its speed in handling large amounts of data
- I was really wanting to use the ListView control because of my past
experience with it in VB6 & ADO, but the Listview unfortunately proved
too sluggish.
So far I'm happy with the Datagrid, except that I can't find the
Datagrid equivalent to the ListView's "Ensurevisible" method. For
example, if a user clicks a column to re-order the grid, the selected
row is often moved out of visible view. I want to ensure that the
selected row is kept in the grid's visible pane. In the Listview
control, you use the "Ensurevisible" method to accomplish this. Any
ideas on how to do the same within the Windows Forms Datagrid control?
Any help or code examples would be greatly appreciated.
Thanks in advance, and Happy Holidays!
Ron
populating it via an ADO.NET Dataset. I was tentative about using the
Datagrid until I witnessed its speed in handling large amounts of data
- I was really wanting to use the ListView control because of my past
experience with it in VB6 & ADO, but the Listview unfortunately proved
too sluggish.
So far I'm happy with the Datagrid, except that I can't find the
Datagrid equivalent to the ListView's "Ensurevisible" method. For
example, if a user clicks a column to re-order the grid, the selected
row is often moved out of visible view. I want to ensure that the
selected row is kept in the grid's visible pane. In the Listview
control, you use the "Ensurevisible" method to accomplish this. Any
ideas on how to do the same within the Windows Forms Datagrid control?
Any help or code examples would be greatly appreciated.
Thanks in advance, and Happy Holidays!
Ron