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
115
Display row number in grid
posted

How can I display the row numbers in XamDataGrid. In UltraWinGrid there used to be a property called RowSelectorNumberStyle to do this. What's the equivalent for XamDataGrid?

Parents
  • 138253
    Offline posted

    Hello,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. So I have been looking through you post and I suggest you use the following style:

     

    <Style TargetType="{x:Type igDP:RecordSelector}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Label Content="{Binding RelativeSource={RelativeSource TemplatedParent},Path=Record.Index}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    

     

    In order to get the look you want.

     

    Feel free to write me if you have further questions.

     

Reply Children