How to add "label for" for gridview in c#

0 votes
46 views
asked Dec 20, 2015 in Programming by 'Sercan Demir (980 points)
look at the bleow

1 Answer

0 votes
answered Dec 20, 2015 by 'Sercan Demir (980 points)

<asp:GridView ID="grid1" AutoGenerateColumns="false" runat="server" CssClass="auto-style1" Width="531px">
            <columns>
                <asp:BoundField HeaderText="Category" DataField="category" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="cS"   runat="server"  Text="fdg" />
                    </ItemTemplate>                   
                </asp:TemplateField>
                <asp:TemplateField>
            <ItemTemplate>
                <asp:TextBox ID="min" runat="server" Text=""></asp:TextBox>
            </ItemTemplate>
        </asp:TemplateField>
                     <asp:TemplateField>
            <ItemTemplate>
                <asp:TextBox ID="max" runat="server" Text=""></asp:TextBox>
            </ItemTemplate>
        </asp:TemplateField>
                </columns>
          </asp:GridView>
        

...