Hello
I am filling a the items of the RadComboBox in the code behind.
When I compile the project, the combobox items are displayed as expected. But the SeletedItem always shows the type name
System.Windows.Contols.StackPanel.
How can I avoid this?
Thank you in advance.
I am filling a the items of the RadComboBox in the code behind.
| foreach (LJSDataSet.LJ_DBRow row in dbNew.LJ_DB.Rows) |
| { |
| StackPanel pan = new StackPanel(); |
| TextBlock tb1 = new TextBlock(); |
| TextBlock tb2 = new TextBlock(); |
| tb1.Width = 130; |
| tb1.Text = row.DBNAME; |
| tb2.Width = 90; |
| tb2.Text = row.DBSERV; |
| pan.Orientation = Orientation.Horizontal; |
| pan.Children.Add(tb1); |
| pan.Children.Add(tb2); |
| this.comboDB.Items.Add(pan); |
| } |
When I compile the project, the combobox items are displayed as expected. But the SeletedItem always shows the type name
System.Windows.Contols.StackPanel.
How can I avoid this?
Thank you in advance.