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
760
Columns.Add throws an exception
posted

We are using 11.1..

In our GUI, when the user refreshed data on the grid, we call 

xamGrid.Columns.Clear

and then do something like this...

 

 if (xamGrid.Columns[colName] == null)

                {

                    textColumn = new TextColumn();

                    textColumn.Key = colName;

                    xamGrid.Columns.Add(textColumn);

                }

 

 

We get an "Object reference not set to an instance of an object" at  the line xamGrid.Columns.Add ..

The stack trace shows this

   at Infragistics.Controls.Grids.XamGridRowsManager.InvalidateGroupBy(Boolean reset).

 

How do I get rid of this error? I verified that the column count was zero after the call to the Columns.Clear

 

Parents Reply Children
No Data