QueryRowHeight Event

Occurs when the row height of SfDataGrid is queried for each row data.
public event QueryRowHeightEventHandler QueryRowHeight
Event Data

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

Gets or sets a value indicating whether to "enable" or "disable" the cache for which the event is fired.  
Gets or sets a value indicating whether the event is handled. (Inherited from Syncfusion.SfDataGrid.XForms.GridHandledEventArgs)
Gets or sets the height for the row for which the event is fired.  
Gets the original reporting source that raising this event (Inherited from Syncfusion.SfDataGrid.XForms.GridEventArgs)
Gets the row index for which the event is fired.  
SfDataGrid supports auto row height feature, by using this event. The user can query row the row height based on its Content and set the queried height as its row height.
dataGrid.QueryRowHeight += DataGrid_QueryRowHeight;
void DataGrid_QueryRowHeight (object sender, QueryRowHeightEventArgs e)
//You can achieve your requirement here.

Syncfusion.SfDataGrid.XForms: 17.2451.0.34

See Also