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

怎么让dataGrid1某一列不显示

2012-01-10 
如何让dataGrid1某一列不显示dataGridView1可以这样写this.dataGridView1[ ITEM_ID ,row].visablefalse

如何让dataGrid1某一列不显示
dataGridView1可以这样写
this.dataGridView1[ "ITEM_ID ",   row].visable   =   false;
那dataGrid1要怎么来实现某一列不显示


[解决办法]
设置绑定列,然后把自己需要的字段显示就可以了。
[解决办法]
设置Cell[i]的display
[解决办法]
在dataGrid的数据绑定事件中。

e.Row.Cells[7]).Style( "display ") = "none "

热点排行