Skip to main content
Tab

ASPxGridHeaderFilterEventArgs.AddShowBlanks(String) Method

Creates and adds the “Blanks” filter value to the header filter values.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public void AddShowBlanks(
    string displayText
)

Parameters

Name Type Description
displayText String

A string value specifying the text of the “Blanks” filter value.

Remarks

Use the AddShowBlanks method to create and add the “Blanks” filter value to the header filter values when handling the ASPxGridView.HeaderFilterFillItems event.

protected void ASPxGridView1_HeaderFilterFillItems(object sender, DevExpress.Web.ASPxGridViewHeaderFilterEventArgs e)
{
    e.Values.Clear();
    e.AddShowBlanks("Blank Items");
    e.AddShowNonBlanks("Non Blank Items");
}
See Also