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
1470
MaskInput and decimal values
posted

Hi there

We are using the UltraWinGrid v8.2.20082.1000

We have data that is stored in a SQL Server table as MONEY datatype and is loaded into an ADO.NET 2.0 DataTable into a DECIMAL column.

Our grid is then bound to that table.

I am specifying a MaskInput value on the decimal column as "nnn,nnn,nnn.nn" and a Format  of "###,###,##0.00" but the unfortunately the MaskInput is always shown with 4 decimal places.

If I cast the MONEY to a DECIMAL(12,2) in the returned stored proc the MaskInput will appear with 2 decimal places but that solution is not applicable to us because we allow the users to change the MaskInput and Format on the client.

Is is possible to effect the MaskInput of the data in this situation and if so how?

Am I completely missing something?

Regards

geoffhop

Parents
No Data
Reply
  • 1470
    Verified Answer
    Offline posted

    Thanks in advance

    No need to reply guys I found the fault, inadvertently an EditorWithText was
    being assigned to the column.

    Regards
    geoffhop

Children
No Data