Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1020
formatted value in the ultragrid cell.
posted

Dear Friends,
I have an ultragrid cell where I want the user to enter -ve values.
My data grid is bound to a data source. When the user enters a -ve
value I want it to be displayed it as a value surrounded by brackets.
(i.e -67 should be displayed as (67). However the value in the datasource should be stored as -67).
So, the brackets are used only for showing it to the user.
Please help.
Sid.

 

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Sid,

    It sounds like you just need to use the Format property on the Column. When the cell displays it's value, it basically calls the ToString method on the value and passes in the format. So you probably just need to check out the Microsoft documentation on the Formats that are supported by the DataType of the column. I'm pretty sure that the bracket format is supported for most (if not all) numeric data types. 

Reply Children
No Data