demo的代码编写方式,跟我们项目本身差别很大,我怎么去绑定combobox下拉数据
<c1:C1DataGrid Grid.Row="4" Grid.ColumnSpan="8" x:Name="dgConfigure" AutoGenerateColumns="False"
CanUserFreezeColumns="None"
RowHeight="30"
Height="300"
AlternatingRowBackground="White"
GridLinesVisibility="All"
SelectionMode="MultiRow"
ColumnHeaderClickAction="Select"
Style="{DynamicResource c1-DataGrid}">
<c1:C1DataGrid.Columns>
<c1ataGridTextColumn Header="控件名称" Width="*" Binding="{Binding ControlName,Mode=TwoWay,ValidatesOnDataErrors=True}"/>
<c1ataGridComboBoxColumn Header="控件类型" Width="*" Binding="{Binding ControlType,Mode=TwoWay,ValidatesOnDataErrors=True}"/>
<c1ataGridTextColumn Header="数据源名称" Width="*" Binding="{Binding DataSource,Mode=TwoWay,ValidatesOnDataErrors=True}"/>
<c1ataGridTextColumn Header="默认值" Width="*" Binding="{Binding DefaultValue,Mode=TwoWay,ValidatesOnDataErrors=True}"/>
<c1ataGridTextColumn Header="字段名称" Width="*" Binding="{Binding Field,Mode=TwoWay,ValidatesOnDataErrors=True}"/>
<c1ataGridComboBoxColumn Header="查询方式" Width="*" Binding="{Binding QueryMethod,Mode=TwoWay,ValidatesOnDataErrors=True}"/>
<c1ataGridTextColumn Header="显示Label" Width="*" Binding="{Binding LabelText,Mode=TwoWay,ValidatesOnDataErrors=True}"/>
<c1ataGridNumericColumn Header="排序号" Width="*" Binding="{Binding LevelOrder,Mode=TwoWay,ValidatesOnDataErrors=True}"/>
</c1:C1DataGrid.Columns>
</c1:C1DataGrid> |