Posted 21 June 2022, 2:20 pm EST - Updated 3 October 2022, 11:29 pm EST
Hi,
I using DateTimeCellType for format column of GcSpreadGrid.
Is there a way for me to change the button like in the attached image?
Thanks.
Forums Home / ComponentOne / WPF Edition
Posted by: quockhanhk15tpm on 21 June 2022, 2:20 pm EST
Posted 21 June 2022, 2:20 pm EST - Updated 3 October 2022, 11:29 pm EST
Hi,
I using DateTimeCellType for format column of GcSpreadGrid.
Is there a way for me to change the button like in the attached image?
Thanks.
Posted 21 June 2022, 9:56 pm EST
Hi,
Thanks for the snapshot.
In order to achieve this requirement you can set DropDownButtonStyle as:
<Style x:Key="dropDownButtonStyle" TargetType="gc:CellDropDownButton">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Image Source="Resources/calendar.png"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Please refer the attached sample for the same: SpreadSample.zip
Best Regards,
Nitin
Posted 22 June 2022, 2:01 pm EST
Hi,
Thanks for your answer.
It’s great.
Thanks