Datagrid and sorting.

  • Thread starter Alejandro Penate-Diaz
  • Start date
A

Alejandro Penate-Diaz

when I uncheck the "Create columns automatically at run time" checkbox in
the Property Builder and insert all the bound columns of my datagrid I
loose the ability tu sort my columns, before my column headers were
hyperlinks and now are plain text. any ideas?
alejandro.
 
E

Elton Wang

Hi Alejandro,

Set AllowSorting to true. You also should have
SortExpression for each column you want to sort. Typically
SortExpression's value is the same as the value of
DataField.


HTH

Elton Wang
(e-mail address removed)
 
A

Alejandro Penate-Diaz

yes, I needed to set SortExpression's value same as DataField.
thanks, a lot.
 

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,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top