mercredi 17 mars 2021

asp.net checkbox in gridview Why my checkbox is not showing up

<asp:GridView ID="grdInvPending" runat="server" AutoGenerateColumns="false" CssClass="table table-hover" AllowSorting="true"> <asp:BoundField DataField="LeagueName" HeaderStyle-BackColor="LightCoral" HeaderStyle-ForeColor="Black" ItemStyle-Width="250px" SortExpression="name" />

                                                <asp:TemplateField HeaderStyle-BackColor="LightCoral" HeaderStyle-ForeColor="Black">
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chkAccepter" Visible="true" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-BackColor="LightCoral" HeaderStyle-ForeColor="Black">
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chkRefuser" Visible="true" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>



Aucun commentaire:

Enregistrer un commentaire