We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Specifying format for number cols in GDBG

Hi, I have a GDBG bound to a DataTable which has some cols with 6 decimal places. For these columns, can I specify the format e.g. two/one decimal place only while not changing the value in the DataTable. Also, if the value in the col is indeed zero, then I want to display "NA" in the corresponding cells. This GDBG is an unbound one, ie, I''m not using GridBoundColumns. Please advise. Thanks

1 Reply

AD Administrator Syncfusion Team September 9, 2005 11:32 AM UTC

Hi Atith, The format styles are to be set in PrepareViewStyleInfo or Model.QueryCellInfo handler and the condition formatting can also be performed there. Try this sample. Best regards, Stanley

Loader.
Live Chat Icon For mobile
Up arrow icon