This is a migrated thread and some comments may be shown as answers.

Keeping selected records at the top regardless of ordering

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RichJ
Top achievements
Rank 1
RichJ asked on 16 Nov 2012, 12:15 AM
Hi all, 

Just wondering if anyone has any thoughts on this:

We have an order system where order records are presented in a radgrid for paging, sorting etc.
Some orders may be flagged as urgent (or overdue etc) and I'd like these to always show on the top of the first page irrespective of how the grid is sorted (i.e. by order number or status etc).
Paging away from the first page is not an issue.

Can anyone offer suggestions on the best way to do this?

Cheers
Rich

1 Answer, 1 is accepted

Sort by
0
Elliott
Top achievements
Rank 2
answered on 16 Nov 2012, 05:58 PM
if your application can handle manual data binding then add a column to the data source and bind your grid to that
when a row is selected mark the datasource - and sort to bubble the selected rows to the top
I had to do something analogous when the SQL tables being displayed did not have a unique key(!)
Tags
Grid
Asked by
RichJ
Top achievements
Rank 1
Answers by
Elliott
Top achievements
Rank 2
Share this question
or