1

I want the first node to stay on top and should not be affected during scroll. The first node will be like a column header(stays on top even scrolling). How can I do that?

This kind of behavior is something you can currently find in spreasheets:

  • Lock first column (Header.Columns[0].OptionscoFixed)
  • Lock first row (?)

I'm trying to insert a picture for more explanation but I don't have 10 reputations. Sorry about that. Thanks in advance.

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
Ago
  • 755
  • 7
  • 28

1 Answers1

1

You can't as VirtualTree doesn't support such a behaviour. Besides, VT already has header support (include hoVisible to Header.Options to show it) why don't you use that? You can custom paint it (see OnHeaderDraw events) if you want it to look like ordinary node.

ain
  • 22,394
  • 3
  • 54
  • 74