Bind Array to Gridview

int[] intArray = { 1, 2, 3, 4, 5 };
GridView1.DataSource = intArray;
GridView1.DataBind();

Comments