Tab
A newer version of this page is available. Switch to the current version.

ASPxGridHeaderFilterEventArgs.AddShowBlanks(String) Method

Creates and adds the "Blanks" filter value to the header filter values.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public void AddShowBlanks(
    string displayText
)
Public Sub AddShowBlanks(
    displayText As String
)

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