ASPxGridHeaderFilterEventArgs.CreateShowNonBlanksValue(String) Method
Creates and returns the (Non blanks) filter item used to filter a column by blank values.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
displayText | String | A String value that specifies the item’s display text. |
Returns
Type | Description |
---|---|
FilterValue | Returns the filter item used to filter by blank values. |
Remarks
When creating custom filter values by handling the ASPxGridView.HeaderFilterFillItems event, you can use the CreateShowNonBlanksValue method to create the (Non blanks) filter item. The created item can be added to a header filter using the event argument’s ASPxGridHeaderFilterEventArgs.AddValue method.
protected void ASPxGridView1_HeaderFilterFillItems(object sender, DevExpress.Web.ASPxGridViewHeaderFilterEventArgs e)
{
e.Values.Clear();
FilterValue showNonBlanksItem = e.CreateShowNonBlanksValue("Non Blank Items");
e.Values.Add(showNonBlanksItem);
}
See Also