FIX. RadGridView - row's height is not correctly adjusted when the AutoSizeRows property is enabled and the grid's Font is changed

To reproduce: run the attached sample project and activate the editor for the cell. You will notice that the row's height is now adjusted and single line text is displayed. It seems that the issue occurs because of the set Font property of the grid.

private void RadGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
e.Row.MinHeight = e.Row.Height + 3;
RadTextBoxEditor tbEditor = e.ActiveEditor as RadTextBoxEditor;
if (tbEditor != null)
tbEditor.Multiline = true;

private void radGridView1_CellEndEdit(object sender, GridViewCellEventArgs e)
e.Row.MinHeight = 0;

Attachments (2)

» Post Comment

Comments (0)

No comments, yet. Be the first!

Post Comment

Your Comment :
Commenting is disabled when the portal is unlicensed.