private void superGridControl1_DataBindingComplete(object sender, GridDataBindingCompleteEventArgs e) { var girdc = superGridControl1.PrimaryGrid.Columns[1]; var list = new object[] { "销售部", "采购部" }; girdc.EditorType = typeof(MyComboBox); girdc.EditorParams = new object[] { list }; } public class MyComboBox : GridComboBoxExEditControl { public MyComboBox(object source) { DataSource = source; } }
楼主,我用了你这个方法试了一下,发现挺好的,没有问题,感谢你给我这种菜鸟提供了方法,白白耗了好久时间,分数是我的了,估计你看不到了短时间呢