Filtering all data at once by typing into just a textbox?

Hello.  I have a grid populated by datatable.  Is there a way to filter all columns at once just by typing search criteria into a simple textbox?  I believe I saw an article on how to do this but cannot find that article now.


1 Reply

MS Malini Selvarasu Syncfusion Team October 7, 2024 01:58 PM UTC

Hi Kevin Davis,

Based on the information provided, we understand that you need to filter a column based on the text entered in a TextBox . This can be achieved by setting the "SearchController.AllowFiltering" property to true . However, since you are using a DataTable as the DataSource, filtering will not work during search operations by default. To enable filtering, the DataTable should be converted into a dynamic collection.
To assist you further, we have prepared a sample that demonstrates this approach. Please review the sample and the User Guide link below, and let us know if it meets your requirements.
If we have misunderstood your request or if your requirements are different, please provide additional details about the issue. This will help us better understand the problem and offer a more suitable solution.
Thank you for your understanding and cooperation.
Regards,
Malini Selvarasu

Attachment: SfDataGrid_DataTable_8ba877b4.zip

Loader.
Up arrow icon