设置datagridview的某个checkbox不显示
2010-05-13 10:46
302 查看
public void chang_color(int i, string str) { dataGridView1.Rows[i].Cells[str].ReadOnly = true; DataGridViewCell cell = new DataGridViewTextBoxCell(); cell.Style.BackColor = Color.Wheat; //cell.ReadOnly = true; cell.Value = "N"; cell.Style.BackColor = Color.White; dataGridView1.Rows[i].Cells[str] = cell; dataGridView1.Rows[i].Cells[str].Style.ForeColor = Color.White; dataGridView1.Rows[i].Cells[str].Style.SelectionBackColor = Color.White; dataGridView1.Rows[i].Cells[str].Style.SelectionForeColor = Color.White; }
相关文章推荐
- DataGridView中设置DataGridViewCheckBoxCell等的enable属性
- DataGridView设置不自动显示数据库中未绑定的列
- 设置ToggleButton、Switch、CheckBox和RadioButton的显示效果
- cxGrid增加一栏显示checkBox的设置方法
- DataGridView单元格显示多行的设置方法
- DataGridView 密码列(显示为*号)的设置
- [唐胡璐] - DataGridView单元格显示多行的设置方法
- 关于DataGridView绑定数据源后未设置的列不显示
- datagridview 列位置 设置顺序与加载显示顺序不一致
- DataGridView 密码列(显示为*号)的设置
- C#设置DataGridView某一具体单元格的内容居中显示
- 设置ToggleButton、Switch、CheckBox和RadioButton的显示效果
- C#dataGridView字体显示设置
- 关于DataGridView绑定数据源后未设置的列不显示
- DataGridView 密码列(显示为*号)的设置
- C#dataGridView字体显示设置
- 设置ToggleButton、Switch、CheckBox和RadioButton的显示效果
- 关于datagridview自动增加行高度和显示全部内容的设置
- struts2 如何将 checkboxlist设置为多行显示 (正确版)
- 定义一个DataGridViewTextBoxColumn使其可以设置列标题显示的位置