Datagrid sort

A

Arne

I have a datagrid that sorts. The sort doesn't seem to execute on my template
column. It only works on my bound columns.
 
E

Elton Wang

Hi Arne,



When conducting sort to a datagrid, it actually sorts underlying data source
of datagrid. And you need to implement sort function by yourself, in
datagrid_SortCommand event.



Could you show your sorting code?
 
A

Arne

Elton,
THe header for each bound column is underlined, meaning it is sortable. The
sort event fires when the operator clicks column and the sort events is
implemented.
The header for the template column is not underlined and the sort event
doesn't fire.
 
E

Elton Wang

It seems that the template column should be sortable. Could you post your
html code of the datagrid?
 

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

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top