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
775
Question on setting MaskInput on grid column
posted

Hi,

I'm trying to set the MaskInput on a grid column in the InitializeLayout handler for one of my grids. The following is the code I'm using to enable this:

// Set mask input for the Order Qty field

if (column.Key == QAD.WorkOrder.Constants.WorkOrderOrderQuantityFieldName)

{

   column.MaskInput = "{double:-7.2}";

   column.MaskDataMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.Raw;

   column.MaskDisplayMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeLiterals;

   column.MaskClipMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeLiterals;

}

The problem I'm running into is that when my application comes up and I go to try and edit a grid cell in that column, the cell goes into edit mode for a split second and then exits edit mode. In effect, I now cannot edit the cell related to the column unless I remove the MaskInput code I've put in above. What could be the possible reasons why this is happening?

Thank you,

Steve

Parents Reply Children