Hello,
I styled the cells of a XamGrid to display a gradient background without any border lines using this XAML code:
<Style x:Key="GridCellStyle" TargetType="ig:CellControl"> <Setter Property="Background" Value="{StaticResource GridRowBackgroundBrush}" /> <Setter Property="BorderThickness" Value="0" /></Style>
<ig:XamGrid CellStyle="{StaticResource GridCellStyle}">
This is working fine.But I could not find a way to style the selected active row. How to do this?When I select a row, it turns blue and the cell borders are visible again...
Thanks.
Hello Rajib,
This forum thread is related to the selected/active row style. The project that was attached illustrates how the default template could be modified to achieve slightly different styling. Please note that the styles that are used are located under the App.xaml file. Would you please be more specific on what the issue with the shared solution is so I could try to assist you further?
This is a wrong project XamGridGroupByTextCutOff
Hello Steve,
Thank you for your response. I am glad that you resolved your issue.
Thank you for the sample.The method is clear to me now.
Best regards,Josef
I have made a sample project where I retemplated the CellControl. In order to change the brushes for the background of the selected/active item you should copy the whole style for the CellControl and the brushes that are used. Then you could change the brushes so that the colors of the cells are different. If you want the borders not to be displayed, you could set the BorderThickness to zero. Please look at the sample and let me know if you have any other questions.