Is it possible to have a style definition for TreeGridNumericColumn

Hi,

I am creating a CellStyle for SfTreeGrid TreeGridNumericColumn and would like to set the NumberDecimalDigits property with a pre-defined custom value, is it possible?

If so, can you show me the XAML style?

Thanks,

Mike.


1 Reply

VS Vijayarasan Sivanandham Syncfusion Team September 27, 2023 02:16 PM UTC

Hi Michael,

We regret to inform you that there is no possible way to define the NumberDecimalDigits property in the CellStyle of SfTreeGrid. However, you can set the NumberDecimalDigits property with a predefined value directly in TreeGridNumericColumn. Refer to the below code snippet,

<syncfusion:TreeGridNumericColumn MappingName="ID"

                                                                    HeaderText="ID"

                                                                    NumberDecimalDigits="2" />


UG Link: Column Types in WPF TreeGrid control | Syncfusion

Find the sample demo in the attachment.

Regards,
Vijayarasan S

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.


Attachment: SfTreeGridDemo_cd027422.zip

Loader.
Up arrow icon