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

filterbar

is there a way to enable filterbar for all columns without actually looping through and enabling them? Currently, this is how i do it: foreach(GridColumnDescriptor gcd in grid.TableDescriptor.Columns) { gcd.AllowFilter = true; }

1 Reply

AD Administrator Syncfusion Team April 26, 2005 05:09 PM UTC

Hi Faraz, you need to manually loop through the columns and set the value. Your code is correct. Stefan >is there a way to enable filterbar for all columns without actually looping through and enabling them? Currently, this is how i do it: > foreach(GridColumnDescriptor gcd in grid.TableDescriptor.Columns) > { > gcd.AllowFilter = true; > } >

Loader.
Live Chat Icon For mobile
Up arrow icon