Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DataGrid Componant #272

Open
gack2009 opened this issue Oct 21, 2023 · 1 comment
Open

Add DataGrid Componant #272

gack2009 opened this issue Oct 21, 2023 · 1 comment
Labels
use case Web Forms usage samples to be considered

Comments

@gack2009
Copy link

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:TemplateColumn HeaderText="Country">


<asp:Label runat="server" Text='<%# htmlEncode(Container.DataItem, "COUNTRY_NAME")%>' ID="lblCountry">
</asp:Label>

</asp:TemplateColumn>
<asp:ButtonColumn HeaderStyle-Width="30" ItemStyle-CssClass="iconCell" Text="<i class='deleteIcon' alt='Delete' title='Delete'> </i>"
CommandName="Delete"></asp:ButtonColumn>

</asp:DataGrid>

@gack2009 gack2009 added the use case Web Forms usage samples to be considered label Oct 21, 2023
@hishamco
Copy link
Collaborator

We already have a GridView component

FYI DataGrid was an ASP.NET 1.1 control, while GridView arrived in 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
use case Web Forms usage samples to be considered
Projects
None yet
Development

No branches or pull requests

2 participants