AD
Administrator
Syncfusion Team
June 15, 2004 03:28 PM UTC
I think this code is specific to the GridPad implementation of the ActiveGrid property.
If you look at the definition of the property ActiveGrid, you will see that the getter has code to try to return a parent form''s active control, and if this control is not a GridControlBase, this method returns null. So, maybe one of the MDI child documents has controls other than grids on them, and this control is the the form''s active control. In this case, the ActiveGrid property would return null.