Grid View sort by column

  • Thread starter Thread starter bbawa1
  • Start date Start date
B

bbawa1

I have a Grid View and I want to sort the data in Gridview by clicking
on column. How can I do that.
 
Turn on "AllowSorting" property in the Gridview.


I Turned on "AllowSorting" property in the Gridview. but it's not
working and columns headers are not clicakble.
 
I Turned on "AllowSorting" property in the Gridview. but it's not
working and columns headers are not clicakble.

Are you using databound data? If not, the sortexpression property
will need to be manually set. Edit Columns of the
datagrid, select a column, find sortex[ression property under
Behavior. Give it a value. Databound items default to
the field name of the databound item.
 
Back
Top