Skip to content

Instantly share code, notes, and snippets.

@corespider
Created February 26, 2022 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corespider/a9415876aeb7e7c2f21aa6c39aa28bc3 to your computer and use it in GitHub Desktop.
Save corespider/a9415876aeb7e7c2f21aa6c39aa28bc3 to your computer and use it in GitHub Desktop.
How to Bind Array to GridView in ASP.Net
<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