Provides data for the GridControl.CustomizeCell event.
public class CustomizeCellEventArgs : EventArgs
Public Class CustomizeCellEventArgs Inherits EventArgs
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.
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.