In this article we will learn about How to Bind Array to GridView in ASP.Net. Here we discuss how we can bind array collections data inside GridView in ASP.Net.
In this example we will learn in how many ways we can bind arrays in GridView.
Binding GridView using One dimensional Array
C#
GridView
Here Binding GridView using One dimensional Array is pretty much easy, we set GridView propert as AutoGenerateColumns="true" and in C# code created a sample Array.
Output
Binding GridView using Two dimensional Array
C#
GridView
Output
Output
</> Find the Source Code in Github
Summary
Post a Comment