To reproduce: use the following code snippet:
this.radListView1.ViewType = ListViewType.DetailsView;
ListViewDetailColumn col1 = new ListViewDetailColumn("Column0");
this.radListView1.Columns.Add(col1);
ListViewDetailColumn col2 = new ListViewDetailColumn("Column1");
this.radListView1.Columns.Add(col2);
for (int i = 0; i < 3; i++)
{
ListViewDataItem item = new ListViewDataItem();
radListView1.Items.Add(item);
item[0] = "data." + i + ".0";
item[1] = "data." + i + ".1";
}
On a RadButton.Click event set the ListViewDetailColumn.Visible property to false for some of the columns. As a result, the column is still visible. If you click over a cell, belonging to it, NullReferenceException is thrown.
Workaround: wrap setting the ListViewDetailColumn.Visible property to false in a BeginUpdate/EndUpdate block.