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
GridViewRowsCollection doesn't have .Add method, so you can't do it directly to the GridView.
.Add
There're alternatives. For example if you bind it to a DataTable - you can add custom row with data to the DataTable.
Another alternative - do it on client by adding a row to rendered HTML Table.