The example creates a custom grid control (MinRowHeightGridControl
) with the lowest row height possible. The custom grid is read-only and we assume that only text columns can be used.
public class MinRowHeightGridViewInfo : GridViewInfo {
public MinRowHeightGridViewInfo(MinRowHeightGridView view) : base(view) { }
protected override int CalcMinRowHeight() {
return Convert.ToInt32(PaintAppearance.Row.CalcTextSize(GInfo.Cache, "Gq", int.MaxValue).Height) + 1;
}
}
(you will be redirected to DevExpress.com to submit your response)