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

[Solved] Issue With Column Not Sorting

1 Answer 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Elke
Top achievements
Rank 1
Elke asked on 31 Oct 2010, 06:17 PM
I am working on a project that contains a grid. In the grid are several columns. I can sort by all my columns except one. When I look at the code I have nothing set to turn this off.

is the sorting set on the data binding?

this is the xaml for that column:

<telerikgrid:GridViewDataColumn DataMemberBinding="{Binding Path=ZoneState, Converter={StaticResource ZoneStateConverter}}" HeaderCellStyle="{StaticResource GridViewHeaderCellStyle1}">
                       <telerikgrid:GridViewDataColumn.Header>
                           <TextBlock x:Name="txtState" Text="State" ToolTipService.ToolTip="Indicates what state the zone is currently in"/>
                       </telerikgrid:GridViewDataColumn.Header>
                   </telerikgrid:GridViewDataColumn>

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 04 Nov 2010, 03:24 PM
Hello Elke,


Setting IsSortable property to False of your GridViewDataColumn will prevent this column from being sorted, by default this property is set to True.


Kind regards,
Vanya Pavlova
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Elke
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or