Sizing visible cells after scroll

We have a virtual grid control with many rows and columns. The rows and columns have to be resized to fit. The resize operation takes a long time so I'd like to only resize the viewable part of the grid control.

This line works for a one time resizing:

gv->ColWidths->ResizeToFit(gv->ViewLayout->VisibleCellsRange);

When the user scrolls the grid control to somewhere new, the new cells are not resized.

I've handled the HScrollBar->Scroll event. If e->Type is endscroll then I do gv->ViewLayout->VisibleCellsRange. But the new cells are not resized. It's as if the new cells are not visible yet at the time of the Scroll event.

How can I properly resize newly visible cells after a scroll event?



1 Reply

RA Rajasekar Syncfusion Team April 26, 2012 04:39 AM UTC

HI Adam,

Thanks for your update. Could you please let me know which grid you are using eighther WPF Grid/ WF Grid/ Silverlight Grid/ ASP.Net Grid/MVC Grid?

Please let us know if you have any queries.

Thanks,
Rajasekar



Loader.
Up arrow icon