1
Num TDBCtrlGrid
I want to hide a component, actually a TPanel
only in the first record of dataset
.
I tried at the event DBCtrlGrid1PaintPanel
checking when the Index = 0 but when for example the first record is selected it ends up showing the control, because the component continues redesigning the records below and changes the Tpanel to visible.
Can you do this? Hide or show a control depending on the index of the record?
It does not work friend, it happens the same, because the records below the first make visible the panel of the first record. I don’t know if it makes a difference, I’ll test it later, but the panel is
Align = alTop;
– Andrey