How can I allow the entering of only numbers in ultrawingridcell in edit mode
Two possible approaches come to mind:
1. Set the UltraGridColumn.MaskInput property to a numeric-only mask, for example, 'nnnn' or 'nn.nn'.
2. Handle the control's KeyPress event and set the Handled property of the event args to true if the incoming character is non-numeric.
Thanks Brian.
How about using this below code?
private void ultraGrid1_InitializeRow(object sender, InitializeRowEventArgs e) { if (e.Row.Index == 2) e.Row.Cells["My Column"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Integer; }