0

Delphi cxGrid. How to prevent the creation of a second row of headers when moving columns?

enter image description here

Fabrizio
  • 7,603
  • 6
  • 44
  • 104
  • Why don't you use a Table view instead of a Band view? – Fabrizio Jan 10 '20 at 08:52
  • In `OnColumnPosChanged` handler set `TcxGridBandedColumn(AColumn).Position.RowIndex:=0;`. – BrakNicku Jan 10 '20 at 10:19
  • @BrakNicku using the TcxGridBandedColumn cast on a regular cxGridDBColumn produces an AV for me, which is not surprising. Obviously it will work with TcxGridBandedColumn descendants but should be superfluous with those. – MartynA Jan 11 '20 at 11:48
  • @Martyna no, this event is derived from parent class so the cast is not superfluous and obviously using this code with normal table view makes no sense - it does not support stacked columns. – BrakNicku Jan 11 '20 at 15:12
  • @BrakNick Thanks for solving the problem! – Кирилл Килинг Jan 16 '20 at 11:00

0 Answers0