Syncfusion.SfDataGrid.XForms
Example 

QueryCellStyle Event

Occurs when each cell in a data row being queried.
Syntax
public event EventHandler<QueryCellStyleEventArgs> QueryCellStyle
Event Data

The event handler receives an argument of type QueryCellStyleEventArgs containing data related to this event. The following QueryCellStyleEventArgs properties provide information specific to this event.

PropertyDescription
Gets the current cell value.  
Gets the current grid column.  
Gets the current column index.  
Gets or sets a value indicating whether the event is handled. (Inherited from Syncfusion.SfDataGrid.XForms.GridHandledEventArgs)
Gets the original reporting source that raising this event (Inherited from Syncfusion.SfDataGrid.XForms.GridEventArgs)
Gets the row data of the current data row. (Inherited from Syncfusion.SfDataGrid.XForms.QueryConditionalStyleEventArgs)
Gets the row index of the current data row. (Inherited from Syncfusion.SfDataGrid.XForms.QueryConditionalStyleEventArgs)
Gets or sets the properties defined in the CellStyle class.  
Remarks
The user can apply styles such as background color, foreground color, font and font attributes in cell level using this event.
Example
dataGrid.QueryCellStyle += DataGrid_QueryCellStyle;
            
void DataGrid_QueryCellStyle (object sender, QueryCellStyleEventArgs e)
{
//You can achieve your requirement here.
}
AssemblyVersion

Syncfusion.SfDataGrid.XForms: 17.2451.0.34

See Also