You can use the built in controls for this.
Add a Bindingsource to your form. Select the datasource property of the binding source. Click Add a project datasource and finish the setting up of the binding source. A dataset should have been created.
on you combobox datasource property select the table that you require under the bindingsource that you added at the beginning. Set the display and value members. A knew binding source was created
select a datasource for the other combo in the same way as the first one.
Another binding source was generated for you and you can set that bindings sources sort property as follows "ColumName asc" or "ColumnNameDesc".
Eventhough this is functional it creates a lot of overhead.
Main Topics
Browse All Topics





by: NeilsrPosted on 2009-09-03 at 12:18:34ID: 25253971
creata seperate query IN your database. Open THIS as your datasource for the one combobox and the other directly to FMENTITY