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

!Winform DataGridView采用虚拟模式后 .Cells[0].Value 设的文字不显示

2013-01-20 
求救!Winform DataGridView采用虚拟模式后 .Cells[0].Value 设的文字不显示DataGridView采用虚拟模式后 Da

求救!Winform DataGridView采用虚拟模式后 .Cells[0].Value 设的文字不显示
DataGridView采用虚拟模式后 DataGridViewRow.Cells[0].Value = "" 设的文字不显示
这是什么原因呢,是不是还要象ListView中UseItemStyleForSubItems = false才会显示一样呢,那是那个属性呢!急等,谢谢! 不太懂,占个SF  坐等大神解决!
[解决办法]
dgvr.Cells[name].Style.NullValue = txt; 

这是设置没有数据的时候显示的内容吧,那么你的虚拟模式是个什么概念呢?

热点排行