首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

DataGridViewComboBoxColumn不能排序,而且在其它列排序后内容会清空解决方法

2012-01-30 
DataGridViewComboBoxColumn不能排序,而且在其它列排序后内容会清空Winform在DataGridView中使用DataGridV

DataGridViewComboBoxColumn不能排序,而且在其它列排序后内容会清空
Winform

在DataGridView中使用DataGridViewComboBoxColumn列,绑定数据后,发现该列不能通过单击列标题的方式排序,而且在点击其它列自动排序后该列的内容会被清空。

[解决办法]
1、若希望该列可以排序,请将该列的SortMode设为Automatic
2、该列的DataProperty属性没设
[解决办法]
同意cpw999cn

热点排行