Some cells I need the mask set just for the time and others I need it for the date and the time and others I need it just for the date.
I'm able to set the mask at the column level but not the cell level. I found this other post that seems to be along the same lines, but not sure. Could you provide a code sample?
http://es.infragistics.com/community/forums/t/17954.aspx
Thanks,
David
When I'm done editing a cell, the editor goes away and the cell reveals it's contents with whatever mask is on the cell.
I need have the cell show the same results as the editor.
Hi,
I'm confused. What do you mean "captured by the editor?"
You are saying that my sample works perfectly and then you appear to be asking how to do exactly what the sample already does.
You don't set the mask on the cell. What you do is you set the editor of that cell to a control that supplies the mask you want. That's what my sample does.
I guess what I'm saying is, how do I set a mask on a cell at the initialize row event?
What you gave me worked perfect. The problem now is that the cell isn't displaying the result that was captured by the editor.
Thank you for following up on this. Not sure how to force it to be the same.
I'm confused. What part of my solution isn't working for you?
You need to set the editor on the Cell, not the column. The InitializeRow event is typically a good place to do this.
e.Row.Cells[dtBeginBin"].EditorControl = myEditorWithTheMaskSettingsIWant;