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
There is nothing about a mask that should make a cell exit edit mode all by itself. You should handle the BeforeExitEditMode event, put a breakpoint in the handler, and check out the call stack to see what is triggering the exit.
Hello Svete,
I have create a small sample based on your approach and evertything works as expected. Could you please follow Brain's suggestion and let me know if you have any other question.
Please find the attached sample below: