Category / Section
How to set the filter bar cell as blank in WinForms GridGroupingControl?
1 min read
Dynamic filter
To set the FilterBar cell as blank, it can be achieved by setting the SelectAllText value as String.Empty in theDynamicFilterCellModel.
C#
public class DynamicFilterCellModel : GridTableFilterBarExtCellModel { public DynamicFilterCellModel(GridModel grid) : base(grid) { //To display the empty selected this.SelectAllText = string.Empty; } }
VB
Public Class DynamicFilterCellModel Inherits GridTableFilterBarExtCellModel Public Sub New(ByVal grid As GridModel) MyBase.New(grid) 'To display the empty selected Me.SelectAllText = String.Empty End Sub End Class
Screenshot
Samples:
Reference link: https://help.syncfusion.com/windowsforms/gridgrouping/filtering#dynamic-filter