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
4165
How to format cell?
posted

Hi,

I have a grid displaying some decimal values. During the initializelayout event, i am setting my decimal columns to have a format ##.##

Just viewing the cell, the value looks like

45.00

But, when the user goes to click in the cell and edit, it looks like;

45.0000000

Is there an easy way to resolve this, other than doing someting in the beforeenetereditmode event?

Thanks.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    Format only affects the display of the column when it is not in edit mode. When the cell goes into edit mode, the MaskInput property applies instead. So you should probably set a MaskInput like "nn.nn."

Children
No Data