Open gack2009 opened 1 year ago
Would be great if you can add a DataGrid support as we were using it heavily in our system or if there is an easy swappable already implemented component.
Sample ASPX code:
<asp:DataGrid ID="dgCountries" CellSpacing="2" CellPadding="1" runat="server" EnableViewState="true" CssClass="table" BorderWidth="0px" BorderStyle="None" DataKeyField="COUNTRY_ID" OnDeleteCommand="deleteCountry" AllowSorting="false" AutoGenerateColumns="false">
<ItemStyle CssClass="tableRow"></ItemStyle> <HeaderStyle CssClass="tableHeader"></HeaderStyle> <Columns> <asp:TemplateColumn HeaderText="Country"> <HeaderStyle Width="100px"></HeaderStyle> <ItemTemplate> <asp:Label runat="server" Text='<%# htmlEncode(Container.DataItem, "COUNTRY_NAME")%>' ID="lblCountry"> </asp:Label> </ItemTemplate> </asp:TemplateColumn> <asp:ButtonColumn HeaderStyle-Width="30" ItemStyle-CssClass="iconCell" Text="<i class='deleteIcon' alt='Delete' title='Delete'> </i>" CommandName="Delete"></asp:ButtonColumn> </Columns>
</asp:DataGrid>
We already have a GridView component
FYI DataGrid was an ASP.NET 1.1 control, while GridView arrived in 2.0
DataGrid
Would be great if you can add a DataGrid support as we were using it heavily in our system or if there is an easy swappable already implemented component.
Sample ASPX code:
<asp:DataGrid ID="dgCountries" CellSpacing="2" CellPadding="1" runat="server" EnableViewState="true" CssClass="table" BorderWidth="0px" BorderStyle="None" DataKeyField="COUNTRY_ID" OnDeleteCommand="deleteCountry" AllowSorting="false" AutoGenerateColumns="false">
</asp:DataGrid>