DevExpress GridControl中添加一个复选框控件,复选框不是绑定数据源,求解
展开全部
<dxg:GridControl x:Name="gridControl1">
<dxg:GridControl.Columns>
<dxg:GridColumn Name="gridColumn1" Header="IP" VisibleIndex="1">
<dxg:GridColumn.EditSettings>
<dxe:ComboBoxEditSettings>
<dxe:ComboBoxEditSettings.StyleSettings>
<dxe:CheckedComboBoxStyleSettings/>
</dxe:ComboBoxEditSettings.StyleSettings>
<dxe:ComboBoxEditSettings.Items>
<dxe:ComboBoxEditItem Content="11"/>
<dxe:ComboBoxEditItem Content="111"/>
<dxe:ComboBoxEditItem Content="222"/>
</dxe:ComboBoxEditSettings.Items>
</dxe:ComboBoxEditSettings>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn Name="gridColumn2" Header="端口" FieldName="Port" VisibleIndex="2">
<dxg:GridColumn.EditSettings>
<dxe:TextEditSettings x:Name="Port" />
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn Name="gridColumn3" Header="刷新时间(秒)" FieldName="RefreshTime" VisibleIndex="3">
<dxg:GridColumn.EditSettings>
<dxe:TextEditSettings x:Name="RefreshTime" />
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:TableView x:Name="tableView1" ShowGroupPanel="False" AllowHorizontalScrollingVirtualization="True" AllowSorting="False"
AllowColumnFiltering="False" AutoWidth="True" />
</dxg:GridControl.View>
</dxg:GridControl>
<dxg:GridControl.Columns>
<dxg:GridColumn Name="gridColumn1" Header="IP" VisibleIndex="1">
<dxg:GridColumn.EditSettings>
<dxe:ComboBoxEditSettings>
<dxe:ComboBoxEditSettings.StyleSettings>
<dxe:CheckedComboBoxStyleSettings/>
</dxe:ComboBoxEditSettings.StyleSettings>
<dxe:ComboBoxEditSettings.Items>
<dxe:ComboBoxEditItem Content="11"/>
<dxe:ComboBoxEditItem Content="111"/>
<dxe:ComboBoxEditItem Content="222"/>
</dxe:ComboBoxEditSettings.Items>
</dxe:ComboBoxEditSettings>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn Name="gridColumn2" Header="端口" FieldName="Port" VisibleIndex="2">
<dxg:GridColumn.EditSettings>
<dxe:TextEditSettings x:Name="Port" />
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn Name="gridColumn3" Header="刷新时间(秒)" FieldName="RefreshTime" VisibleIndex="3">
<dxg:GridColumn.EditSettings>
<dxe:TextEditSettings x:Name="RefreshTime" />
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:TableView x:Name="tableView1" ShowGroupPanel="False" AllowHorizontalScrollingVirtualization="True" AllowSorting="False"
AllowColumnFiltering="False" AutoWidth="True" />
</dxg:GridControl.View>
</dxg:GridControl>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询