How to bind ComboBox on Form to Data?

Stimulsoft Reports.NET discussion
Post Reply
GarryGlobe
Posts: 2
Joined: Tue Jul 04, 2006 7:38 am

How to bind ComboBox on Form to Data?

Post by GarryGlobe »

Hi!
Please help me to solve my trouble. I have a custom dialog form with some comboboxes on it. How can I fill my comboboxes from the dataset?
Thank you for help.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to bind ComboBox on Form to Data?

Post by Edward »

GarryGlobe wrote:Hi!
Please help me to solve my trouble. I have a custom dialog form with some comboboxes on it. How can I fill my comboboxes from the dataset?
Thank you for help.
Hello!
Here 3 solutions for you.
1. You may specify the DataBindings property.

2. You may get native ComboBox by this code:

Code: Select all

ComboBox comboBox = ReportComboBox.Control;
3. You may fill combobox in the FormLoad events:

Code: Select all

ReportComboBox.Items.Add("123");
Thank you!
Post Reply