GridControl.CustomizeCell Event
Allows you to customize the appearance of cells in the grid.
Namespace: DevExpress.Mobile.DataGrid
Assembly: DevExpress.Mobile.Grid.v18.2.dll
Declaration
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.
The CustomizeCell event is raised before a data cell is painted. Use the FieldName and RowHandle parameters to identify a column and row containing the cell, and BackgroundColor and ForeColor to set cell colors. Set the Handled parameter to true to prohibit default cell painting.
Example
This example demonstrates how to customize the appearance of cells in the specified grid column depending on cell values by handling the GridControl.CustomizeCell
event.
The image below illustrates the result.