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

ASPxGridHeaderFilterEventArgs.AddShowNonBlanks(String) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

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

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