The requested page is not available for the requested platform. You are viewing the content for Default platform.

CustomizeCellEventArgs Class

Provides data for the GridControl.CustomizeCell event.

Namespace: DevExpress.Mobile.DataGrid

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

Declaration

public class CustomizeCellEventArgs :
    EventArgs
Public Class CustomizeCellEventArgs
    Inherits EventArgs

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 GridControl.CalculateCustomSummary event allows you to customize the appearance of cells in the grid. When this event is raised, the CustomizeCellEventArgs object with appropriate settings is automatically created and passed to the event handler. Use this object’s properties to identify a column and row of the cell currently being processed (CustomizeCellEventArgs.FieldName, CustomizeCellEventArgs.RowHandle) and set cell colors (CustomizeCellEventArgs.BackgroundColor, CustomizeCellEventArgs.ForeColor).

The CustomizeCellEventArgs.Handled property specifies whether default painting is required after the event handler has been executed. If this property is set to true in a handler, then the default painting is canceled. Otherwise, any custom painting performed in an event handler will be overridden by the GridControl's standard 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">

Inheritance

Object
EventArgs
CustomizeCellEventArgs
See Also