How to add a checkbox column programmatically

Please look at the attached code. I am trying to programmatically add an unbound checkbox control to a column, but I don't know how to assign the GridColumnDescriptors ItemTemplate to a System.Web.UI.WebControls.CheckBox. Can you please help.

Are there any samples that dynamically create grid columns rather than using the designer? I am finding it difficult to progress using your grid control as I can't find any good code samples.

Cheers,

Michael

code8.zip

1 Reply

SI Sivakumar Syncfusion Team October 19, 2006 05:45 PM UTC

Hi Michael,

Please have a look at this forum, where you can find a sample using templates through code, and also retaining the viewstate in check box.

Let us know if you need more info

Thanks,
A.Sivakumar

Loader.
Up arrow icon