Nope Still does NOT work
The selected item is NOT being read correctly
If the the combo box is filled from a database of names (this Works)
FullName,Code
in databindings:
Items is set to Fullname
SelectedItem is set to Code
using the supplied example
MyVariable = ComboBox.SelectedItem.ToString()
Results in MyVariable = FullName NOT Code as required
Problem with Form Dialogs
Problem with Form Dialogs
Yes, the ComboBox is working now only for one field from the DataSource. If you need to select some additional field from the DataSource, e.g. Code, then some additional programming must be done.Andre wrote:Nope Still does NOT work
The selected item is NOT being read correctly
If the the combo box is filled from a database of names (this Works)
FullName,Code
We'll post the result of our investigations about this a bit later.in databindings:
Items is set to Fullname
SelectedItem is set to Code
using the supplied example
MyVariable = ComboBox.SelectedItem.ToString()
Results in MyVariable = FullName NOT Code as required
Thank you.
Problem with Form Dialogs
Any Progress on this issue?
thanks
thanks
Problem with Form Dialogs
You can use one trick if you want to retrieve a column from the DataSource using SelectedIndex property of the Combobox:
Please download sample report for the Demo.exe application again.
Thank you.
Code: Select all
string AnotherValueFromThisRow = comboBox.SelectedIndex ==-1?"":MyDataSource.GetData("ColumnName", comboBox.SelectedIndex).ToString();
Thank you.
- Attachments
-
- 55.ComboboxExample.mrt
- (15.37 KiB) Downloaded 256 times
Problem with Form Dialogs
Thanks for that
Now it works :biggrin:
Now it works :biggrin:
Problem with Form Dialogs
It really was a trick but it worked and you can use it for retrieving as much fields from the 'selected' datasource row as you need it.
Thank you.
Thank you.