Loading ...

last column sorting gridview

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  web forms / data controls   » last column sorting gridview

last column sorting gridview

Posts under the topic: last column sorting gridview

Posted: 11/21/2011

Lurker 5  points  Lurker
  • Joined on: 11/21/2011
  • Posts: 1

my last column is editible (combination of dropdown list (edit item template) and label (item template). Everything works fine, but everytime when I update one of rows for that column, column gets sorted (I mean rows get sorts by that column), why is that how can i disable this column sorting, It's strange couse i don't have sorting expression defined for that (editable) column. It's anoying how row, when it is updated runs to the top of table, it isn't still because of this column sorting.

 

 


Posted: 12/16/2011

Lurker 65  points  Lurker
  • Joined on: 12/16/2011
  • Posts: 9

Do you by any chance have an order by on your SQL query that is used to populate the gridview (I'm assuming that you are using a query to populate your gridview). If not, can you try to set the AllowSorting property of your gridview to false.


Page 1 of 1 (2 items)