AD
Administrator
Syncfusion Team
September 19, 2006 04:34 AM UTC
Hi Eric,
The GridStyleInfo.MaskEdit properly is only used with the MaskEdit cell type. So you can change the e.Style.CellType property to "MaskEdit" in the QueryCellStyleInfo event.
e.Style.ReadOnly = false;
e.Style.CellType = "MaskEdit" ;
GridMaskEditInfo mask = new GridMaskEditInfo();
mask.UsageMode = MaskedUsageMode.Numeric;
mask.Mask = "#,##0";
mask.MinValue = 0;
mask.MaxValue = 99999;
e.Style.MaskEdit = mask;
Let me know if something like this will not work for you.
Regards,
Haneef