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.
Syncfusion Feedback

How to tell when a GridControl has been initialized?

Thread ID:

Created:

Updated:

Platform:

Replies:

30067 Jun 9,2005 07:09 PM UTC Jun 9,2005 07:23 PM UTC Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On June 9, 2005 07:09 PM UTC

I''ve made a custom grid class that inherits GridControl. One of the custom properties I''ve added to this class calls the Refresh method when its value is set. If I place this custom grid control onto a form and set the value of that custom property in the Property Designer window, VS.NET automatically places code in the InitializeComponent method that it creates for the form. This has the result of the grid getting it''s Refresh method called before it is completely initialized by the form. Is there any way to tell when a grid has been completely initialized?

Administrator [Syncfusion]
Replied On June 9, 2005 07:18 PM UTC

I must be blind. The Initializing property does this.

Administrator [Syncfusion]
Replied On June 9, 2005 07:23 PM UTC

Can you test !Form.DesignMode before calling Refresh to avoid the call at design time? Another option might be to override Initialize. There you could set a property after the base class call to inidicate the grid has been initialized.

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.

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

;