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
1590
Horizontal Line to separate xamGrid rows separator
posted

Hi ,

I have data display on the XamGrid. but i need to mention the Horizontal line separator between the XamGrid rows.

could you please specify is there any Row Separator Style or any solution to achieve this.

Task :- I need Horizontal line between Xamgrid rows. Could you please provide me a solution to achieve  this..

 

Thanks

Anil Kumar

  • 6912
    Verified Answer
    posted

    Hi,

    If you want to have a visible border at the bottom of the cell, you can set a CellStyle like that:

    <ig:XamGrid x:Name="XGrid"
                ItemsSource="{Binding Data}">
        <ig:XamGrid.CellStyle>
            <Style TargetType="ig:CellControl">
                <Setter Property="BorderThickness"
                        Value="0,0,1,1" />
            </Style>
        </ig:XamGrid.CellStyle>
    </ig:XamGrid>
    

    And the result will look like that: 

    If you need something more advanced you will have to change the control template of the CellControl - check this article for more information.

    Regards