Skip to main content
A newer version of this page is available. .
Tab

ASPxGridHeaderFilterEventArgs.AddShowBlanks(String) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

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