dataGridView 单元格添加combox checkbox
来源:互联网 发布:java远程执行cmd命令 编辑:程序博客网 时间:2024/05/18 04:15
dgIn.Columns.Add("NAME", "参数名称");
dgIn.Columns.Add("VALUE", "值");
dgIn.Rows.Add(3);
dgIn.Rows[0].Cells["NAME"].Value = "管道类型";
dgIn.Rows[1].Cells["NAME"].Value = "设备压力";
dgIn.Rows[2].Cells["NAME"].Value = "是否bool类型(测试)";
DataGridViewComboBoxCell dgCell = new DataGridViewComboBoxCell();
dgCell.Items.Add("主蒸汽管道");
dgCell.Items.Add("再热蒸汽管道");
dgCell.Items.Add("汽轮机抽汽管道");
dgCell.Items.Add("背压汽轮机排汽管道");
dgCell.Items.Add("减压装置后的蒸汽管道");
dgCell.Items.Add("与直流锅炉启动分离器连接的汽水管道");
dgCell.Items.Add("高压给水管道");
dgCell.Items.Add("低压给水管道");
dgCell.Items.Add("凝结水管道");
dgCell.Items.Add("加热器疏水管道");
dgCell.Items.Add("锅炉排污管道");
dgCell.Items.Add("给水再循环管道");
dgCell.Items.Add("安全阀后排汽管道");
dgIn.Rows[0].Cells["VALUE"] = dgCell;
dgIn.Rows[2].Cells["VALUE"] = new DataGridViewCheckBoxCell(false);
dgIn.Rows[2].Cells["VALUE"].Value = false;
- dataGridView 单元格添加combox checkbox
- DataGridView 添加checkBox
- DataGridView 添加checkbox
- DataGridView 添加checkbox
- DataGridView 添加checkbox
- DataGridView 添加checkbox
- DataGridView如何添加CheckBox?
- 在DataGridView上的指定单元格创建ComBox
- DataGridView单元格中添加按钮
- Datagridview之一添加单元格按钮
- DataGridView列中添加CheckBox
- dataGridView为单元格动态添加按钮控件
- datagridview 设置单元格自动添加值
- datagridview为某个单元格添加按钮
- C# WINFORM DATAGRIDVIEW 单元格添加 按钮
- C# DataGridView添加可分组的单元格
- DataGridView中添加CheckBox控件主…
- DataGridView集成Combox使用
- 如何修改ArcSDE的端口号信息?
- mysql 触发器学习
- http 的header
- 找到一个好的code网站 http://www.planetsourcecode.com
- C#中有关string.GetHashCode()的一个重要注意事项!
- dataGridView 单元格添加combox checkbox
- mysql备份与恢复
- 学习笔记四:用js消息对话框使用
- 众说纷“云”—— 第五届云计算大会归来看大公司的云平台
- Groovy&Grails
- 在Ubuntu 中使用Source Code Pro字体
- php DOMDocument和SimpleXML区别
- oracle12c(oracle12.1.0.1.0)安装指南--实测OEL5.9(RH5)
- 软件测试