DataGridViewComboBoxColumn能绑定一个表吗? 如T,本人菜鸟,大虾勿笑。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以绑定,就是和combobox一样的绑定方法,下拉列表显示你需要的值 DataGridViewComboBoxCell dgcombo = null;DataGridViewComboBoxColumn dgcolumn = (DataGridViewComboBoxColumn)dgMain.Columns["CitationTableEnglishName"];DataTable dtETable = (new CostManage.BLL.bas_DataImportModel()).GetAllListSystemTable().Tables[0];dgcombo = (DataGridViewComboBoxCell)dgMain.Rows[i].Cells[5];dgcombo.DataSource = dtETable;dgcombo.DisplayMember = "TableEnglishName";dgcombo.ValueMember = "TableChineseName"; C#連接ORACLE時發生了錯誤,無法open,但是try catch無法取得錯誤的信息,求助高手 请教一个TreeView控件的使用问题 高分请教面试题 dll与winform之间调用 求一个加锁控制数据库并发的例子 SQL的自动增长列用C#怎么实现? 正则表达式的最小匹配问题(请高手指点) 新手简单问题,解决马上结帖,关于添加,删除,保存更新操作的代码该如何写? 将一个DataSet数据集怎么转换成FoxPro数据库的dbf文件 WCF 服务类 在线等!!!急急!!如何把DropDownLIst中的数据清除!! 求网页源代码表格提取正则表达式。 这个函数在C#中怎么声明
DataGridViewComboBoxCell dgcombo = null;
DataGridViewComboBoxColumn dgcolumn = (DataGridViewComboBoxColumn)dgMain.Columns["CitationTableEnglishName"];
DataTable dtETable = (new CostManage.BLL.bas_DataImportModel()).GetAllListSystemTable().Tables[0];
dgcombo = (DataGridViewComboBoxCell)dgMain.Rows[i].Cells[5];
dgcombo.DataSource = dtETable;
dgcombo.DisplayMember = "TableEnglishName";
dgcombo.ValueMember = "TableChineseName";