Skip to content

Instantly share code, notes, and snippets.

@corespider
Created February 26, 2022 12:07
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/b3bb27c1319d6b147aeebca6c506641e to your computer and use it in GitHub Desktop.
Save corespider/b3bb27c1319d6b147aeebca6c506641e to your computer and use it in GitHub Desktop.
How to Bind Array to GridView in ASP.Net
<asp:GridView ID="gridView3" runat="server" CssClass="table-striped"
AutoGenerateColumns="false" AllowPaging="true"
PageSize="10" Caption="Multi Dimensional Array">
<Columns>
<asp:BoundField ItemStyle-Width="150px"
DataField="Name" HeaderText="Name" />
<asp:BoundField ItemStyle-Width="150px"
DataField="City" HeaderText="City" />
<asp:BoundField ItemStyle-Width="150px"
DataField="Country" HeaderText="Country" />
</Columns>
</asp:GridView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment