因为我是WPF的初学者,所以我有一个本质上可能是基本的问题。WPF Datagrid Combobox XAML和Codebehind
我有一个datagrid,它有一个组合框。
这是我写的XAML是:
<DataGridComboBoxColumn Header="ControlOption" Width="100"
SelectedItemBinding="{Binding Path=DataGridComboxBox_Control}">
<DataGridComboBoxColumn.ItemsSource>
<col:ArrayList>
<sys:String>Database1</sys:String>
<sys:String>DataBase2</sys:String>
</col:ArrayList>
</DataGridComboBoxColumn.ItemsSource>
</DataGridComboBoxColumn>
我有3个值,这应该是有在下拉ComboBox的下降。 1. WorkStream1 2. WorkStream2 3. WorkStream3
现在我该怎样写的ComboxBox代码隐藏。 请给我指点一下。 :)
非常感谢。
Ashutosh
你的问题并不清楚,你究竟想在代码背后做什么? – akjoshi 2012-07-13 08:31:51
我编辑了我的帖子,认为需要在组合框的下拉列表中输入3个值。 – Ashutosh 2012-07-13 08:41:51