Select rows in DBCtrlGrid

Please discuss general Delphi programming topics here.

Select rows in DBCtrlGrid

Postby gvrglife » December 3rd, 2003, 6:21 am

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
gvrglife
Member
Member
 
Posts: 1
Joined: December 3rd, 2003, 6:14 am

Return to Delphi Programming

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron