Hi,
I want to dynamically generate a new Row in GridView respecting the sequence of the column sID_c.
The reference is
I have using this example but in my case I have this error
System.IndexOutOfRangeException: Index was outside the bounds of the array
on this line of my code
dr["contents"] = string.Format("New row Thread {0}", (row.FindControl("lblContents") as Label).Text.Split('.')[1]);
My complete code below
Any help would greatly appreciate.
Thank you.