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
4695
format in the cell
posted

Dear all,

I have set below code but find that user can input more than two decimal places. Do you know why? How to solve??

 

private

 

 

 

void dtgSupplier_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs

e)

{

e.Layout.Bands[0].Columns[

 

 

"LAST_PURCHASE_COST"].MaskInput = "nnnnnnnnn.nn"

;

Parents
No Data
Reply
  • 469350
    Offline posted

    I tried this out and I am unable to enter more than 2 decimal places in the cell.

    What is the DataType of the column? This is a numeric mask and so it will not work unless the DataType of the column is numeric. I don't think it will work if the column is a string, for example.

    If that does not help, then are you seeing the masking prompt in the cell at all? Perhaps some code that runs after this is clearing the mask?

Children
No Data