Skip to main content

Posts

Showing posts from May, 2012

ASP.net GridView CheckBox

Ancient piece of code that I keep forgetting. <asp:GridView ID="grdR" runat="server" AutoGenerateColumns="False"             DataKeyNames="Id" style="margin-left: 6px; font-size: x-small;" Font-Size="Small">             <Columns>                 <asp:TemplateField>                     <ItemTemplate>                         <asp:CheckBox ID="CheckBox1" runat="server" />                     </ItemTemplate>                 </asp:TemplateField>                 <asp:CommandField SelectText="Edit" ShowSelectButton="True" />                 <asp:BoundField DataField="Length" HeaderText="Length" />                 <asp:BoundField DataField="Breadth" HeaderText="Breadth" />             </Columns>             <EmptyDataTemplate>                 &a