Syncfusion.SfDataGrid.XForms
Example 

QueryRowStyle Event

Occurs when each row in SfDataGrid control being queried.
Syntax
public event EventHandler<QueryRowStyleEventArgs> QueryRowStyle
Event Data

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

PropertyDescription
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 RowStyle class.  
Remarks
The user can apply styles such as background color and foreground color in row level using this event.
Example
dataGrid.QueryRowStyle += DataGrid_QueryRowStyle;
            
void DataGrid_QueryRowStyle (object sender, QueryRowStyleEventArgs e)
{
//You can achieve your requirement here.
}
AssemblyVersion

Syncfusion.SfDataGrid.XForms: 17.3451.0.14

See Also