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?
ADAdministrator Syncfusion Team June 9, 2005 02:18 PM
I must be blind. The Initializing property does this.
ADAdministrator Syncfusion Team June 9, 2005 02:23 PM
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.