I have a 2D array.
string[,] my2DArr= new string[r,c];
string actual="header1,header2,header3";
I want to achieve copying a row to zeroth row of 2d array:
my2DArr[0]=actual.Split(',');
GridView gv= new GridView();
gv.AutoGeneratedColumns=true;
gv.DataSource=my2DArr;
gv.DataBind();
This is not showing the data.
any suggestions greatly appreciated.
Thanks
Is there a reason why you can’t work with lists?
Update: When you want to bind it, you might need to use this code: