Hello,
I am using Syncfusion 3.2.1.0 and the tool DateTimePickerAdv as a GridDataCell in my grids.
When I have a cell of this type selected (not editing) and the user hit a key (0..3), I want to enter the edition mode and directly set the first field of the DateTimePickerAdv to the value of the key that was just pressed.
if I use the following code in my cell renderer, sometimes my application hangs...
//handle initial keystroke on inactive cell, passing it to the datetimepicker
protected override void OnKeyPress(System.Windows.Forms.KeyPressEventArgs e)
{
if(!dateTimePicker.Focused)
{
dateTimePicker.Focus();
SendKeys.Send(new string(e.KeyChar, 1));
}
base.OnKeyPress(e);
}
How can I do that properly?
Thanks in advance for your help.
Sebastien