For my working purpose I wanna try to make a multiple column Combox
Box.So i prepare myself to make this.But i fetched too many problem for
this and Finally i have gotten this solution.
At first write this code in XAML file to create MultiColumn ComboBox.
At first write this code in XAML file to create MultiColumn ComboBox.
| < ComboBox Grid.Column = "1" Height = "23" HorizontalAlignment = "Left" Margin = "1,0,0,232" Name = "cmbWHTypeId" Width = "175" TabIndex = "0" VerticalAlignment = "Bottom" > |
| < ComboBox.ItemTemplate > |
| < DataTemplate > |
| < StackPanel Orientation = "Horizontal" > |
| < TextBlock Text = "{Binding WhtID}" Width = "60" /> |
| < TextBlock Text = "|" Width = "10" /> |
| < TextBlock Text = "{Binding WhtName}" Width = "100" /> |
| </ StackPanel > |
| </ DataTemplate > |
| </ ComboBox.ItemTemplate > |
| </ ComboBox > Then Write the following Code in CS file of UI
Here GetAllWhTypes() is a method which returns a list collection.
EWareHouseTypes is a class and it contains two property id and name. | GET VALUE FROM COMBO BOX
If you have any query about this topic please leave a comment. |
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন