We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridFilterBar in a GridDataBoundGrid

What I'm trying to do is to have the grid display empty and then allow the user to utilize the filter bar to determine what to display. The GridFilterBar will only show the values from the displayed grid column in the combobox dropdown list. How can I manually load the filter's dropdown list with all possible distinct values from the datasource?

1 Reply

AD Administrator Syncfusion Team February 14, 2003 09:49 AM UTC

Here is one thing that would be simple to try to see if this will give you the behavior you are looking for. Go ahead and fill your datatable and set it as the datasource in the grid. Then directly apply a RowFilter on its default view that returns no rows. This means the grid should appear empty, but the underlying full datatable is there as its datasource. Then create your GridFilterBar. Its should create the dropdowns based on the contents of the full table. Attached is a sample.

Loader.
Live Chat Icon For mobile
Up arrow icon