Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
Show Sort Indicator
posted

Hey,

I have a small question:

Is there a way to show a field sort indicator(The Up/Down arrow) without sorting the data.

I'm using dataview binded to xamDataGrid1.Datasource that i sort manually using:

DV.Sort = "Name asc".

(xamDataGrid 2008 Vol1 & 2)

tx

Parents
  • 69686
    Suggested Answer
    posted

    Hello,

    If you want the SortIndicator to be visible even if not sorted, you need to create a style for the LabelPresenter and set the visibility of the sort indicator to Visible. You can see the default style of the LabelPresenter( and all the default styles of all the components) in the DefaultStyles folder in the Infragistics directory on your computer.

    The style looks like this:

    <Style TargetType="{x:Type igDP:LabelPresenter}">

    ....

     

    <Setter Property="Template">

                    <Setter.Value>

                        <ControlTemplate TargetType="{x:Type igDP:LabelPresenter}">

    ....

     

     

    <igWindows:SortIndicator 

    x:Name="SortIndicator" 

    Visibility="Visible"  />

    ...

    Hope this helps,

    Alex.

     

     

Reply Children
No Data