This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

Rowheight change at TelTreeStringgrid

edited February 2013 in LMD ElPack
Hello

I use a TelTreestringgrid for output data.

How can i change at runtime my defaultrowheight with variable rowheights.

Line 1 -> Rowheight= 20
Line 2 -> Rowheight= 50.
.
.
.

Br,
Rainer


Comments

  • Use Item's OwnerHeight and Height properties:

      ElTreeStringGrid1.Items[1].OwnerHeight := false;
      ElTreeStringGrid1.Items[1].Height := 60;
  • Hello !

    I want to set the Item unvisible.

     ElTreeStringGrid1.Items[1].OwnerHeight := false;
     ElTreeStringGrid1.Items[1].Height := 0;
    does not work !

    With Tstringgrid -> rowheights[0]=0; works !

    Br,
    Rainer


  • You asked how to change row heights, but your aim was to hide item. 
    Hiding item is done other way:

      ElTreeStringGrid1.Items[0].Hidden := true;
      ElTreeStringGrid1.FilteredVisibility := true;
  • Thank you !
Sign In or Register to comment.