Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1314
2009.2 ColumnLayouts error
posted

Hi

When I use ColumnLayout.Clear() method, I receive a "object reference not set to an instance of an object" error. This was working fine in 2009.1. I verified that the refrenced grid is indeed defined and the ColumnLaout.Count is zero. Can we not clear an empty collection? The workaround was

 

 

if  ( grid.ColumnLayouts.Count > 0 )

grid.ColumnLayouts.Clear();

I am not sure if this works for all cases.

What is the recommended way to clear all child bands (all descendants)?

Regards

Babu