Tab

ASPxGridHeaderFilterEventArgs.AddShowNonBlanks(String) Method

Creates and adds the “(Non blanks)” filter value to the header filter values.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

public void AddShowNonBlanks(
    string displayText
)

Parameters

Name Type Description
displayText String

A string value specifying the text of the “(Non blanks)” filter value.

Remarks

Use the AddShowNonBlanks method to create and add the “(Non 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