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.
Unfortunately, activation email could not send to your email. Please try again.

Triggering OnLayout

Thread ID:

Created:

Updated:

Platform:

Replies:

15037 Jun 10,2004 05:45 AM Jun 10,2004 07:13 AM Windows Forms 2
loading
Tags: GridControl
Pete Davis
Asked On June 10, 2004 05:45 AM

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 07:02 AM

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

Pete Davis
Replied On June 10, 2004 07:13 AM

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.

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.

;