Since GridViewCommandColumn holds the command/interactive visual elements (but not any column's data), clicking its header does not perform any data shaping operation (such as sorting). If you need to perform data sorting based on the row's selection state (for instance, always display selected rows on top), consider implementing custom data sorting:
- Set each column's Settings.SortMode property to Custom.
- Handle the ASPxGridView.CustomColumnSort event.
- If both rows that should be compared have the same selection state, set the EventArgs e.Handled property to False in order to apply the default data comparing/sorting rules.
- If not, treat a selected row as a "stronger" one using the EventArgs e.Result property.
Question Comments
Added By: Igal Wolf at: 11/14/2012 5:39:48 AM
It doesn't work