I have created a Grid ServerSide. The first time the grid loads it is fine, but any time a subsequent load happens I get the above error for any column where I am trying to set a UniqueName. I am clearing out all columns before new ones are created so I don't see why I am getting this. Here is a snippit of my code:
// Clear all Grid Columns to start from scratch
RadGrid.MasterTableView.Columns.Clear();
foreach
(
string
column
in
columns)
{
if
(column.ToLower() ==
"recordid"
)
{
RadGrid.MasterTableView.ClientDataKeyNames =
new
string
[] { column };
RadClientDataSource1.Schema.Model.ID = column;
continue
;
}
GridBoundColumn col =
new
GridBoundColumn()
{
DataField = column,
UniqueName = column,
HeaderText = column.Replace(
"_"
,
" "
),
FilterDelay = 300
};
RadGrid1.MasterTableView.Columns.Add(col);
}