DataGrid - position of new item

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top