Home Forums WinForms controls Xceed Grid for WinForms Row height for custom CellViewerManager Reply To: Row height for custom CellViewerManager

User (Old forums)
Member
Post count: 23064

My understanding was that QueryFittedWidth applied to CellEditors, not CellViewers. However, I can get the behavior I want by calculating the height of the row inside SetControlValueCore and then setting the parent row height, i.e.:

<code>

            protected override void SetControlValueCore( Cell pDataCell )
            {

                // calculate the height

                // if the height is larger than the current height, set it

                if ( height > pDataCell.ParentRow.Height )
                     pDataCell.ParentRow.Height = height;
            }

</code>

But if you know of a more efficient or more elegant method I will be very happy to use it.

Aaron

Imported from legacy forums. Posted by Aaron (had 2472 views)