Double Scrollbars in DataGrid

jshurpin

Member
Joined
Dec 15, 2005
Messages
8
Programming Experience
10+
Hi.

I have a "Search" form in which you enter search criteria and the results are displayed in a DataGrid. It works fine - the first time in. If I press my search button again (for the same criteria or other criteria) the correct set of results is returned, but I now have two scrollbars. The original scrollbar is now "dead". The new scrollbar (to the left of the original one) now "works". Also, the last visible row in the grid is "frozen" - it does not scroll. It's as if the datagrid has gotten smaller by the width of the original scrollbar and the height of one row.

Several other points:
The first time in (when I don't have the problem), I see a "scrollbar" briefly flash to the left of the "real" scrollbar and then it disappears.
On subsequent times (when I do have the problem), if I click on any column heading thereby causing a sort, the grid is redisplayed properly, with a single working scrollbar in the correct position.
A DataGrid.Refresh does nothing. A DataGrid.Hide / DataGrid.Show combination leaves a single "bar" without the "scroll" part.
And, I have several other very similar datagrids (in other forms) which do not exhibit this behavior.

Any thoughts on this would be greatly appreciated ...

Thanks,
Joe
 
Back
Top