Created
February 26, 2022 12:03
-
-
Save corespider/a9415876aeb7e7c2f21aa6c39aa28bc3 to your computer and use it in GitHub Desktop.
How to Bind Array to GridView in ASP.Net
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<asp:GridView ID="gridView2" runat="server" CssClass="table-striped" | |
AutoGenerateColumns="false" AllowPaging="true" | |
PageSize="10" Caption="Two Dimensional Array"> | |
<Columns> | |
<asp:BoundField ItemStyle-Width="180px" | |
DataField="Text" HeaderText="Name" /> | |
<asp:BoundField ItemStyle-Width="180px" | |
DataField="Value" HeaderText="Country" /> | |
</Columns> | |
</asp:GridView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment