hide rows and scroll bar

i have a grid (virtual) with about 100 rows, when the user clicks a separate check box i go thro and hide certain rows( about 90%) based on a cell content. this is fine but when i go thro and unhide those rows the vertical scroll bar fails to come back. Even if i set the scroll bar to display it is not enabled

6 Replies

AD Administrator Syncfusion Team October 31, 2005 09:23 AM UTC

After hiding the rows, try calling grid.Refresh() to see if that makes the scrollbar appear properly.


KV Kevin Vickers October 31, 2005 09:28 AM UTC

no... no difference


AD Administrator Syncfusion Team October 31, 2005 10:07 AM UTC

Attached is little sample with a button that hides rows in a virtual grid. The scrollbar seems to work as expected for me using version 3.3. What are you doing differently? Can you upload a sample showing the problem?

WindowsApplication19.zip


KV Kevin Vickers October 31, 2005 10:23 AM UTC

here you go... click button 2

WindowsApplication110.zip


AD Administrator Syncfusion Team October 31, 2005 11:41 AM UTC

The RowHiddenEntries collection is used at design time and not really intended for use at run time. To reset the hidden rows at runtime, use code like: this.gridControl1.Rows.Hidden.ResetRange(1, this.gridControl1.RowCount);


KV Kevin Vickers October 31, 2005 12:43 PM UTC

that got it.... thanks

Loader.
Up arrow icon