W
Wild Gooose
Here is a scenario.
I want to prevent the user from typing non-numeric char's
in a DataGridTextBoxColumn. So, I am capturing the
TextChanged event of the DGTBcolumn.
2 strange things are happening.
a. The event is called when the focus in place on the
cell. I don't understand why
b. When I start typing the first character, the event gets
fired twice. In the first call, the text property of the
textbox is empty, but in the second call I can see the
char I typed.
Can anyone please help me with this. Do I need to capture
any other event, or is there a better way to handle
textchanged event.
Any help appreciated.
Thanks
I want to prevent the user from typing non-numeric char's
in a DataGridTextBoxColumn. So, I am capturing the
TextChanged event of the DGTBcolumn.
2 strange things are happening.
a. The event is called when the focus in place on the
cell. I don't understand why
b. When I start typing the first character, the event gets
fired twice. In the first call, the text property of the
textbox is empty, but in the second call I can see the
char I typed.
Can anyone please help me with this. Do I need to capture
any other event, or is there a better way to handle
textchanged event.
Any help appreciated.
Thanks