DataTable dt=new DataTable();
DataColumn dc1=new DataColumn("row1");
DataColumn dc2=new DataColumn("row2");
DataColumn dc3=new DataColumn("row3");
dt.Columns.Add(dc1);
dt.Columns.Add(dc2);
dt.Columns.Add(dc3);
ds.Tables.Add(dt);
object[] bb =new object[]{"a","b","c"};
// string[] aa =new string[]{"a","b","c"};
int i=ds.Tables[0].Columns.Count;
ds.Tables[0].Rows.Add(bb);
for(int j=0 ;j<10;j++)
{
object[] aa =new object[]{"","",""};
ds.Tables[0].Rows.Add(aa);
}
DataGrid1.DataSource=ds;
DataGrid1.DataBind();