Thanks
Jaydel
private void mBOM50206UG_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e) { //Create the Settings Object: DefaultEditorOwnerSettings theSettings = new DefaultEditorOwnerSettings();
//as well as the Editor Owner: DefaultEditorOwner theOwner = new DefaultEditorOwner(theSettings);
EmbeddableEditorBase theEditor = null;
object theValue = e.Row.Cells["QTYToTransfer"].Value;
//Create an appropriate editor based on the //Value's Data Type: if (theValue is decimal) { theSettings.DataType = typeof(decimal); //theSettings.Format = "n2"; theSettings.MaskInput = "nnn,nnn,nnn,nnn.nnnnn"; theEditor = new EditorWithMask(theOwner); }
//Assign it to the Cell.Editor e.Row.Cells["QTYToTransfer"].Editor = theEditor;
I'm not sure why it's not working for you, but the code you posted here is unreadable. Can you post it again and surround it with a 'code' tag? Or copy the code into notepad and then copy and paste it from there, so it doesn't get formatted.