[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

Sortable datagrid with bound columns

Since I changed my datagrid to use bound columns, my on sort event no longer works even though allowsorting is set to true.

The header now appears as if allowsorting were false.

Ideas?

Thanks in advance...
0
Weller0123
Asked:
Weller0123
1 Solution
 
tusharashahCommented:
Make sure you provide SortExpression in your BoundColumn like following:

<asp:BoundColumn HeaderText="Sortable" DataField="IntegerValue" SortExpression="IntegerValue"/>

-tushar
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now