The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team May 2, 2005 04:08 PM UTC
I tried to see this problem in this sample, but could not.
http://www.syncfusion.com/Support/user/uploads/9570_CS_aef90d0c.zip
If you see the problem in this, can you list the steps you did to see it?