Code to bind an array list to a gridview control.

Karthikanbarasan
Posted by Karthikanbarasan under C# category on | Points: 40 | Views : 3067
You can make use of the below code to bind an array to the grid view control using c#

int[] arrayobj = { 1, 2, 3, 4, 5, 6, 7, 8 };
GridView1.DataSource = arrayobj;
GridView1.DataBind();

Comments or Responses

Login to post response