8,737
社区成员
发帖
与我相关
我的任务
分享
<DataGridComboBoxColumn x:Name="ColDicEscape" Header="字典转义" Width="*" SelectedItemBinding="{Binding Path=ColDicEscape}" />
ColDicEscape.ItemsSource = DicHelper.getAllDicType();
public static List<DicEntity> getAllDicType()
{
List<DicEntity> myList = new List<DicEntity>();
//业务逻辑省略
return myList;
}
public class DicEntity
{
public string DicKey;
public string DicVal;
public DicEntity(string _DicKey, string _DicVal)
{
DicKey = _DicKey;
DicVal = _DicVal;
}
}