Sfdatagrid.KeyPress event not trigger

Sfdatagrid.KeyPress, Sfdatagrid.KeyUp  etc.   event not trigger

3 Replies

FP Farjana Parveen Ayubb Syncfusion Team June 11, 2018 08:46 AM UTC

Hi Eren,  
 
Thanks for contacting Syncfusion support. 
 
We have host the TableControl into SfDataGrid, so you have to raise the KeyUp or KeyPress event for a SfDataGrid.TableControl instead of SfDataGrid. Please refer to the below code example and sample in the following location, 
 
Code Example:  
sfDataGrid.TableControl.KeyPress += TableControl_KeyPress; 
void TableControl_KeyPress(object sender, KeyPressEventArgs e) 
{ 
    //Do your customization here  
} 
 
sfDataGrid.TableControl.KeyUp += sfDataGrid_KeyUp; 
void sfDataGrid_KeyUp(object sender, KeyEventArgs e) 
{ 
    //Do your customization here  
} 
 
Note: Have to trigger the control events from SfDataGrid.TableControl instead of SfDataGrid 
 
Regards, 
Farjana Parveen A 



ER Eren June 11, 2018 09:43 AM UTC

Thank you for your support it's work


MA Mohanram Anbukkarasu Syncfusion Team June 11, 2018 10:02 AM UTC

Hi Eren,  
 
Thanks for your update. 
 
We are glad to know that the given solution has solved your query. Please let us know, If you need any further assistance. 
 
Regards, 
Mohanram A. 


Loader.
Up arrow icon