Created
February 26, 2022 12:07
-
-
Save corespider/b3bb27c1319d6b147aeebca6c506641e 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="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