GridControl.CustomizeCell Event

Allows you to customize the appearance of cells in the grid.

Namespace: DevExpress.Mobile.DataGrid

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

Declaration

public event CustomizeCellEventHandler CustomizeCell
Public Event CustomizeCell As CustomizeCellEventHandler

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.

Examples

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.

GridControl_CustomizeCell_iOS

GridControl_CustomizeCell_Android

<dxGrid:GridControl x:Name="grid" ItemsSource="{Binding Orders}"
                    NewItemRowVisibility="true"
                    CalculateCustomSummary="OnCalculateCustomSummary"
                    SortMode="Multiple" AutoFilterPanelVisibility="true"
                    CustomizeCell="OnCustomizeCell"
                    SwipeButtonShowing="OnSwipeButtonShowing"
                    SwipeButtonClick="OnSwipeButtonClick">

See Also