Hi Khanh Dang,
Thank you for the update.
We suspect that when you enter the different charset, you should press the same key for more than one time. But search function call for every text changing. You can resolve this by call the Search method after entering all the text in textbox. Please refer the below code snippet,
|
txtDisplayRecord.KeyDown += TxtDisplayRecord_KeyDown;
private void TxtDisplayRecord_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
sfDataGrid.SearchController.AllowFiltering = true;
sfDataGrid.SearchController.Search(txtDisplayRecord.Text);
e.SuppressKeyPress = true;
}
} |
Here, we have performed the search action after press the Enter key only. We hope it will helps you.
Please check the sample and let us know if you need further assistance on this.
Regards,
Susmitha S