Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
430
How to change Cell height display size.
posted

Hi,

 I am using ultra tree for displaying data. I want to reduce the cell height used for display.Is it possible to change the cell height independent of the font size used in the Node for displaying the data.

 regards,

ravi.

Parents
  • 48586
    posted

    Hello,

    The following code sample demonstrates how to wrap cell text to a second line in the UltraTree control using the OutlookExpress ViewStyle:

    treeControl.Override.ItemHeight = (treeControl.Font.Height * 2) + 1;
    treeControl.ColumnSettings.CellWrapText = DefaultableBoolean.True;

    foreach( UltraTreeNodeColumn column in treeControl.Nodes[0].DataColumnSetResolved.Columns )
    {
        column.LayoutInfo.PreferredCellSize = new Size(0, treeControl.Override.ItemHeight);
    }

    I hope this help

     

Reply Children
No Data