Hi,
I have a radgrid on my ascx, and it has autogenerated columns.
I want to add a "GridClientSelectColumn" to RadGrid in code behind. I can add it using this code on the Page_Init method:
GridClientSelectColumn gcsc = new GridClientSelectColumn(); |
gcsc.UniqueName = "ClientSelectColumn"; |
gcsc.HeaderStyle.Width = Unit.Pixel(30); |
RadGrid1.MasterTableView.Columns.AddAt(0, gcsc); |
It is working, but if the page is postback, i am giving an error like this:
"Cannot create column with the specified type name: GridClientSelectColumn"
How can I solve this problem?
(My RadGrid version is 4.6.1.0)
Thanks