Page 1 of 1

Select rows in DBCtrlGrid

PostPosted: December 3rd, 2003, 6:21 am
by gvrglife
Hi,
i have a DBCtrlGrid and a DBCheckbox inside. Now what i need is to b able to disable some of the checkboxes in the ctrlgrid.

If for only one checbox then i used
dbctrlgrid.panelindex:=1;//ie second checkbox to disable
dbcheckbox.enabled:=false;

But if disabling 2 checkboxes only the last one is disabled:
dbctrlgrid.panelindex:=1;//ie second checkbox to disable
dbcheckbox.enabled:=false;
dbctrlgrid.panelindex:=2;//ie third checkbox to disable
dbcheckbox.enabled:=false;
//here only the third checkbox is disabled
Anyone has any idea to to disable both dbcheckboxes??

Thnx in advance
gvrglife