By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,948 Members | 1,570 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,948 IT Pros & Developers. It's quick & easy.

DataGrid Bugs?

P: n/a
I've been creating my own datagrid control which I'm inheiriting from
the standard datagrid control and I have come across two very
interesting behaviors with the datagrid control.

1. If you are currently editing a cell and use the scroll wheel to
scroll up or down and the editing cell is no longer being shown on the
grid then the grid loses focus and goes to the next control. Is there
some way to have the datagrid to remain focused and still be able to
use the scroll wheel up and down?

2. If the datagrid is too small for all the columns to be displayed in
the datagrid and you're scrolling up or down in the last column it will
jitter back and forth as you move up or down towards a new cell that
wasn't previously displayed on the grid. It forces the far left column
that is currently partially shown in the datagrid to line up with the
left of the datagrid even though I have focus on the last column. When
you then go down or up one more cell the horizontal position goes back
to where it was initially. Is there a way to stop the horizontal
scroll bar to move back and forth as I scroll up and down on the
datagrid without having to make the datagrid big enough so that all of
the columns can be seen?

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.