Search datagrid after Combobox selection index changed in c#
Some help?
Search datagrid after Combobox selection index changed in c#
Some help?
You can add a bindingsource to your DataGridView, then using the Filter property to filter your data in DataGridView
For example
bindingsource.Filter = $"CategoryID = '{cboCategory.SelectValue}'";
You can also combine filter with the textbox control
bindingsource.Filter = $"CategoryID = '{cboCategory.SelectValue}' and ProductName like '*{txtSearch.Text}*'";