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