回复 2楼Alice的帖子
我将demo的datagrid改为如下代码:- <c1:C1DataGrid Name="grid" Margin="30" >
- <c1:C1DataGrid.Columns>
- <c1:DataGridComboBoxColumn DisplayMemberPath="Name" SelectedValuePath="Id"
- SortMemberPath="CountryId" FilterMemberPath="CountryId"
- Header="Country" Binding="{Binding CountryId,Mode=TwoWay}" Width="2*"/>
- </c1:C1DataGrid.Columns>
- </c1:C1DataGrid>
复制代码 |