Y
yamma
Hi!
I have some DataGrid on my ASP.NET page. The following piece of code shows my
procedure of inserting new row:
System.Data.DataRow dr = dsNorthwind1.Categories.NewRow();
dr["CategoryName"] = "Category #1";
dr["Description"] = "Some description";
dsNorthwind1.Categories.Rows.Add(dr);
sqlDataAdapter1.Update(dsNorthwind1, "Categories");
sqlDataAdapter1.Fill(dsNorthwind1, "Categories");
My question is: why ASP.NET DataGrid inserts new rows at the top of the grid?
The same code in Windows Application's DataGrid inserts new rows at the bottom.
Thanks in advance!
yamma
I have some DataGrid on my ASP.NET page. The following piece of code shows my
procedure of inserting new row:
System.Data.DataRow dr = dsNorthwind1.Categories.NewRow();
dr["CategoryName"] = "Category #1";
dr["Description"] = "Some description";
dsNorthwind1.Categories.Rows.Add(dr);
sqlDataAdapter1.Update(dsNorthwind1, "Categories");
sqlDataAdapter1.Fill(dsNorthwind1, "Categories");
My question is: why ASP.NET DataGrid inserts new rows at the top of the grid?
The same code in Windows Application's DataGrid inserts new rows at the bottom.
Thanks in advance!
yamma