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

How to freeze a particular column compltely in gridview wpf from sorting????

1 Answer 177 Views
GridView
This is a migrated thread and some comments may be shown as answers.
CHAITHRA
Top achievements
Rank 1
CHAITHRA asked on 20 Aug 2015, 11:00 AM

Hi,
i have sortabletelrik grid with 10 columns.By default telerik provides sorting option.

i need to customize the sorting facility,i mean ,say i have these two columns with colums1 and columns2. when i click on column header column1,it should not sort.This can be done by setting isortable=false in XAML.But my problem is,wen i click on column2 for sorting,it takes up the first column data for sorting which should not happen. The data of column1 should be freezed wen ever i click on sort on any column header of the grid,it has to exclude coulmn1 and den sort.

Please see the required output in the example.

Ex  before sort
column1  column2
A1           Oligo 1
C1           Oligo 2
F1           Oligo 3
A2           Oligo 4
B2           Oligo 5

After sort

column1  column2
A1           Oligo 5
C1           Oligo 4
F1           Oligo 3
A2           Oligo 2
B2           Oligo 1

and one more condition is, this freezing should only happen wen sorting is clicked,not by default. Please reply ASAP. 

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 21 Aug 2015, 11:10 AM
Hi,

I answered the inquiry in the other forum thread opened on the same question.

Regards,
Dimitrina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
CHAITHRA
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or