Triggering OnLayout

I''m overriding the OnLayout() method in a grid derived from GridControl. In the OnLayout(), I''m handling the positioning of shared scrollbars. The grid is also virtual. My problem is that OnLayout() is being called before the GridQueryRowCount and GridQueryColCount events and I need to retrigger the layout after that occurs so that I can remove the scrollbars if necessary. Is there a "natural" way of doing this or should I simply create a LayoutEventArgs object and call it directly? Thanks

2 Replies

AD Administrator Syncfusion Team June 10, 2004 11:02 AM UTC

You can call PerformLayout (member of the Control class) to trigger a call to OnLayout.


PD Pete Davis June 10, 2004 11:13 AM UTC

Perfect. That''s exactly what I was looking for. Thanks.

Loader.
Up arrow icon