Articles in this section
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

Filter cell as blank in GridGroupingcontrol

 

Samples:

C#: FilterbarCellBlank_CS

VB: FilterbarCellBlank_VB

Reference link: https://help.syncfusion.com/windowsforms/gridgrouping/filtering#dynamic-filter

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied