Code
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();This blog shows on how to bind an array list to a gridview control
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();
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · ASP.NETASP.NET Tags in Web Forms: The Complete GuideDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.