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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Triggering OnLayout

Thread ID:

Created:

Updated:

Platform:

Replies:

15037 Jun 10,2004 09:45 AM UTC Jun 10,2004 11:13 AM UTC WinForms 2
loading
Tags: GridControl
Pete Davis
Asked On June 10, 2004 09:45 AM UTC

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

Administrator [Syncfusion]
Replied On June 10, 2004 11:02 AM UTC

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

Pete Davis
Replied On June 10, 2004 11:13 AM UTC

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;