In TDBCtrlGrid
I want to hide a component, actually a TPanel
only in the first record of dataset
.
I tried the DBCtrlGrid1PaintPanel
event by checking when the Index = 0 but when for example the first record is selected it ends up showing the control, because the component continues redrawing the records below Changes the TPanel to Visible.
Can you do that? Hide or show a control depending on the registry index?