c# - asp.net gridview Sorting by date -
i sorting date sql query , proper result.
but apply
gridview.useaccessibleheader = true; gridview.headerrow.tablesection = tablerowsection.tableheader;
to gridview. sorted info gets unsorted.
this.gridviewname.mastertemplate.enablesorting = true; this.radgridview1.mastertemplate.enablesorting = true sortdescriptor descriptor = new sortdescriptor(); descriptor.propertyname = "yourcolumnname"; descriptor.direction = listsortdirection.ascending; this.gridviewname.mastertemplate.sortdescriptors.add(descriptor); descriptorcolumnname new sortdescriptor() descriptorshipname.propertyname = "columnname" descriptorshipname.direction = listsortdirection.ascending seek
c# asp.net sorting gridview
No comments:
Post a Comment