是这样写的吧
- <Grid >
- <c1:C1FlexGrid x:Name="comb" ItemsSource="{Binding CC}" HorizontalAlignment="Left" Margin="59,35,0,0" VerticalAlignment="Top" Height="306" Width="136">
- <c1:C1FlexGrid.Columns>
- <c1:Column Header="城市" Width="*" >
- <c1:Column.CellTemplate>
- <DataTemplate>
- <ComboBox ItemsSource="{Binding CC}" SelectedValue="{Binding Cities}" >
-
- </ComboBox>
- </DataTemplate>
- </c1:Column.CellTemplate>
- </c1:Column>
- </c1:C1FlexGrid.Columns>
- </c1:C1FlexGrid>
- </Grid>
复制代码
然后我把键值对的代码注释了之后,下拉列表里面什么也没有了 |