tags:

views:

18

answers:

1

Hi, is it possible to disable sorting on specific columns?

5 out of 7 columns have to be sortable, two not sortable. The columns are created dynamically in code behind, so I think doing this with mark up is out of the question.

When I say disabled, I'm hoping that the underline wont show on the column header when you mouse over it.

Any help apprciated.

A: 

In your datagrid, each column has a sortexpression. If you have the sortexpression to be blank, those columns won't be sortable.

rlb.usa