Is it possible to programmatically add a row to a GridView in C# ASP?
If yes, how ?
I want to add static data directly from the code, not from an array nor an da
DataTable dt = new DataTable(); DataRow dr = dt.NewRow(); dr["Column1"] = string.Empty; dt.Rows.Add(dr);
You can then bind your GridView to the DataTable...
GridView
DataTable
gv.DataSource = dt; gv.DataBind();