Look of GridViewCheckBoxColumn

1 Answer 19 Views
GridView
Louis
Top achievements
Rank 1
Louis asked on 17 Jan 2023, 04:00 PM

Hi all,

I'm a beginner in wpf and i have a question. My checkbox inside my GridViewCheckBoxColumn looks strange. it looks like a square filled or not instead of a check. How can i change this ?

 

 

to look like this

 

Here is the xaml code of my column

 

<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding SelectedProgram}"
                                            Header="Selection" Background="White"
                                            MinWidth="150" Tag="{windows:NameOf SelectedProgram, Type={x:Type local:AxisToCondition}}" IsReadOnly="False"
                                            AutoSelectOnEdit="True" EditTriggers="CellClick">
</telerik:GridViewCheckBoxColumn>

 

Is this simple to do ?

 

Thanks in advance and have a good day !

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 20 Jan 2023, 03:19 PM

Hello Louis,

We have an article regarding the customization of the GridViewCheckBoxColumn when the cells are both in view mode and in edit mode. The article can be found at the following link:

WPF DataGrid - Styling CheckBoxColumn - Telerik UI for WPF

Generally, to achieve this, you could either create a custom ControlTemplate for the GridViewCheckBox control or extract its default one from the applied theme and modify it. Then, this ControlTemplate can be set to the Template property of the GridViewCheckBox element via Style as suggested in the above-shared article.

With this being said, I hope the provided information will be of help to you.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Louis
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or