Hi Stefan,
You use the Model.RowHeights.ResizeToFit method to resize the cell height based on its content. Please refer to the attached sample for more details.
int colIndex = GetColIndexFromLayoutColumn("col8", layoutcolumns);
this.gridDataBoundGrid1.Model.RowHeights.ResizeToFit(GridRangeInfo.Col(colIndex));
string[] layoutcolumns;
private int GetColIndexFromLayoutColumn(string ColumnName,string[] columns)
{
if( columns != null && columns.Length == 0 )
return -1;
int j = 0;
for(int i = 0;i < columns.Length;i++)
{
j++;
if( columns[i] == ColumnName )
return j;
else if( columns[i] == ".")
j = 0;
}
return j;
}
Here is a sample.
GDBGResizeToFit.zipBest Regards,
Haneef