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

How to tell when a GridControl has been initialized?

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?

2 Replies

AD Administrator Syncfusion Team June 9, 2005 07:18 PM UTC

I must be blind. The Initializing property does this.


AD Administrator Syncfusion Team 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.

Loader.
Live Chat Icon For mobile
Up arrow icon