Board index » delphi » DBCtrlGrid and DBLookUpComboBox

DBCtrlGrid and DBLookUpComboBox

Please help.
Can I use DBLookUpComboBox in DBCtrlGrid?
I tried it, If I set ListSource some error appeared: Operatin not allowed in
DBCtrl

Hi.

 

Re:DBCtrlGrid and DBLookUpComboBox


Property TDataLink.DataSourceFixed  is set to true and it is my problem.

Units: DB, DBCtrls, DBCGrids
TDataLink.DataSourceFixed: Boolean
Procedure TDBCtrlGrid.UpdateDataLinks sets TDataLink.DataSourceFixed True.
TDBCtrlPanel.CMControlListChange calls procedure UpdateDataLinks
TDBCtrlGrid.SetDataSource also cals procedure UpdateDataLinks
Method TDBLookupControl.CheckNotLookup tries property
TDataLink.DataSourceFixed and makes Error
TDBLookupControl.SetKeyFieldName calls CheckNotLookup
TDBLookupControl.SetListSource calls CheckNotLookup

Other Threads