DataGrid Hidden Row Bug?

Aug 14, 2009 at 3:21 PM
Edited Aug 14, 2009 at 3:23 PM

I'm having a problem with the Vertical Scrollbar when their are some hidden rows on the datagrid.

The Grid is a Tree view List.  So I dynamically populate inner nodes when expanded and hide them when node gets collapsed.  The problem is that once I hide them, the Vertical Scrollbar size increases and when I try to scroll down, the scrollbar size keeps on shrinking and only after scrolling down for the while does it actually scroll down the grid.

 I've uploaded some pictures to help understand.