I use in StiForm two LookupBox, in Lookupbox1 i have loaded a DataSourceA and i set from interface in field (DataBindings) in Items a column and in Keys another column of my DataSourceA. This DataSourceA have property Connect on Start=True.
In the LookupBox2 i want load a "dinamic" DataSourceB i.e. its content changes according to the value selected from Lookupbox1 (changing
query of this DataSourceB) Is Possibile??
I have try to set property Item and Keys of Lookupbox2 not from interface but in code writing in event LOadForm...
(AskBOMforItem is LookupBox2 and SelectionsBOMFilter the DataSource)
...
this.AskBOMforItem.ItemsBinding = "SelectionsBOMFilter.Voice";
this.AskBOMforItem.KeysBinding = "SelectionsBOMFilter.IdERP";
...
But this 2 command no function.... (this 2 command function only in section "InitializeComponent")
Then (inside event SelectedIndexChanged of Lookupbox1 ) i want know how modify SqlCommand of DataSourceB and rebinding this contents
in property Item and Keys of Lookupbox2!!!
Thanks
