I have enabled Sorting and Column Sorting under the Telerik ListView properties.
This ListView is updated on a regular interval. In the update method I call Items.Clear() and Columns.Clear().
I add some columns programmitically as well. However, when the code runs below it throws an "Out of range index" exception.
This only occurs after I have clicked a column header to sort it. If the column was not sorted, the code runs fine.
When I look at the Count of radListView.Items the Count is 0. This means the radListView.Item.Add method did nothing..
This ListView is updated on a regular interval. In the update method I call Items.Clear() and Columns.Clear().
I add some columns programmitically as well. However, when the code runs below it throws an "Out of range index" exception.
radListView.Items.Add(new ListViewDataItem(dr["Mon"].ToString() + dr["Year"].ToString()));ListViewDataItem item = this.radListView.Items[0];This only occurs after I have clicked a column header to sort it. If the column was not sorted, the code runs fine.
When I look at the Count of radListView.Items the Count is 0. This means the radListView.Item.Add method did nothing..