Skip to main content

GridColumnDataEventArgs.IsSetData Property

Gets whether the current cell’s value should be saved in a data source.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

public bool IsSetData { get; }

Property Value

Type Description
Boolean

true if the current cell’s value needs to be saved in a data source.

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.

If the IsSetData property is set to true (and consequently the GridColumnDataEventArgs.IsGetData property is set to false) the GridColumnDataEventArgs.Value parameter identifies the value which has been set for the current cell in the grid. This value should be saved in your data source by the event handler.

If the IsSetData property returns false (and consequently the GridColumnDataEventArgs.IsSetData property is set to true) the data for the currently processed cell should be supplied via the event handler. To do this, assign a required value (for example, it can be calculated based on values of other columns in the current row) to the event’s GridColumnDataEventArgs.Value parameter.

The GridColumnDataEventArgs.RowData property can be used to identify the cell’s row. The current cell’s column is identified by the GridColumnDataEventArgs.Column property.

See Also