GridColumnSummary.IgnoreNullValues Property
Specifies whether null values should be ignored when a summary is calculated. This is a bindable property.
Namespace: DevExpress.Mobile.DataGrid
Assembly: DevExpress.Mobile.Grid.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to ignore null values; otherwise, false. |
Remarks
Important
This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.
Use the IgnoreNullValues property to specify whether null values should be ignored when a summary is calculated. If they are included, they will be treated as zeros. This option is useful for functions like SummaryType.Count or SummaryType.Average, because the number of elements counted will depend on it.
For instance, the Average summary function will return the following values for the 1, null, 5 set of values, depending on the IgnoreNullValues property.
IgnoreNullValues | Summary Value |
---|---|
true | 3 |
false | 2 |