How to select singe-checkbox in Grid?

I display data in a grid. There is a Template column contains CheckBox(not Radio) like this:

<c1webgrid:C1TemplateColumn>
<ItemStyle Width="3%"></ItemStyle>
<ItemTemplate>
<asp:CheckBox ID="chkCheck" Runat="server"></asp:CheckBox>
</ItemTemplate>
</c1webgrid:C1TemplateColumn>
..........................

How can i make only select one checkbox?
Thanks for any help.CheckBox fstOne = (CheckBox)c1webgrid.Items[0].FindControl("chkCheck");

Dim fstOne as CheckBox = c1Webgrid.Items(0).FindControl("chkCheck")
This code will get you the first checkbox, you can use any number to select checkbox you want.

may i ask you about this tag "</c1webgrid:C1TemplateColumn>"?!
 
Back
Top