Hi Magdalena,
Thank you for your interest in Syncfusion products.
By default, the DefaultRecordRowHeight of a record is “18”. If we set DefaultRecordRowHeight manually and perform the ResizeToFit() operation, the single lined text record row will automatically override to “18”. To preserve the record row height of the single lined cell, you can handle the RowHeightsChanging event with the following code.
RowHeight = this.gridGroupingControl1.Table.DefaultRecordRowHeight;
this.gridGroupingControl1.DataSource = dt;
this.gridGroupingControl1.TableModel.RowHeightsChanging += new GridRowColSizeChangingEventHandler(TableModel_RowHeightsChanging);
void TableModel_RowHeightsChanging(object sender, GridRowColSizeChangingEventArgs e)
{
if (e.Values.Length > 1) // this avoid unwanted loopings.
{
for (int i = e.From; i < e.To; i++)
{
if (e.Values[i] == RowHeight)
{
e.Values[i] = 20; // set the rowheight here
}
}
}
}
Please refer the following sample which illustrates the above.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GCC_rowheight-151787830.zipPlease let me know if you have any other concerns.
Regards,
Christopher K.