Articles in this section

How to set the filter bar cell as blank in WinForms GridGroupingControl?

Dynamic filter


To set the FilterBar cell as blank, it can be achieved by setting the SelectAllText value as String.Empty in the DynamicFilterCellModel.


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
The below screenshot illustrates the filter bar cell as blank.

Filter cell as blank in GridGroupingcontrol

 

Samples:

C#: FilterbarCellBlank_CS

VB: FilterbarCellBlank_VB

 

Reference Link: Dynamic filter

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