TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mata
NA
46
34.6k
SOLVED Deafult last column sorting gridview problem
Nov 22 2011 4:01 AM
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 cause 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 default column sorting.
.......solved it. I added this line in Init Event, it puts first column as default for sorting on page loadprotected
void
Gridview_Init(
object
sender,
EventArgs
e)
{
Gridview1.Sort(
"FirstColumn"
,
SortDirection
.Descending);
}
Reply
Answers (
0
)
Using one (or more ) conditions in filter expression
Please help to implement Dropdown list in my project