or
protected void btnChooseColumns_Clicked(object sender, EventArgs e)
{
ht = new Hashtable();
foreach (RadComboBoxItem item in rcColumnChooser.Items)
{
CheckBox checkBox = (CheckBox)item.FindControl("CheckBox");
ht.Add(item.Text, checkBox.Checked);
}
BindGrid();
}
protected void rgCatalogs_ColumnCreated(object sender, Telerik.Web.UI.GridColumnCreatedEventArgs e)
{
if (ht != null)
{
if (ht.Contains(e.Column.HeaderText.ToUpper()))
{
GridBoundColumn boundColumn = e.Column as GridBoundColumn;
e.Column.Visible = (bool)ht[e.Column.HeaderText];
}
}
}
Error: Sys.WebForms.PageRequestManagerServerErrorException: Conversion from type 'Pair' to type 'String' is not valid.