Grid View sort by column

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.
 
B

bbawa1

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.
 
B

bpd

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.
 

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

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top