We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon