DataGrid Horizontal Scroll Bar problem

G

Grant Smith

I am currently trying to expand upon the default datagrid control using
VB.NET. I have noticed one quirk about it that I cna't seem to get
around. If I have a datagrid that doesn't display all of the columns
(say the grid is only big enough to display 2 and there are 3 columns
total). If you go to the last column (so 3 of 3 in this example) and
scroll either up from the top cell being displayed in the datagrid or
down from the bottom cell being displayed (granted there are more rows
than are currently displayed in the datagrid) you'll see that when to
bring up the next cell from the bottom and we're at the far right
column and part of the 2nd column is displayed to the left it will
force the 2nd column to be fully displayed and the 3rd column which
you're currently editing to be the one that is cut off. I was
wondering if anyone knew which event to override so that I can force
the horizontal scroll bar to keep the same position as I scroll down
the grid rather than jumping back and forth. I hope this is clear
enough, if not let me know.
 
G

Guest

Jan. 10, 2005

I can picture what you mean and I think I have seen that before, but
why can't you just widen the datagrid, because then there won't be a scroll
bar.


Joseph MCAD
 
G

Grant Smith

I can't make the grid any bigger because of the form size as well as
I'm trying to restrict the form size to less than 800x600.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top