[VB.NET]如何给DATAGRIDVIEW控件中指定的单元格设置背景色????

来源:互联网 发布:设计软件培训机构 编辑:程序博客网 时间:2024/06/06 08:28
VB.NET源码-156个实用实例哦……<script type="text/javascript"><!--google_ad_client = "pub-8333940862668978";/* 728x90, 创建于 08-11-30 */google_ad_slot = "4485230109";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
如何给DATAGRIDVIEW控件中指定的单元格设置背景色????
如何给DATAGRIDVIEW控件中指定的单元格设置背景色????不是设置某行,某列,而是某一个单元格。
__________________________________________________________________________
Me.DataGridView1.Rows(0).Cells(0).Style.BackColor
__________________________________________________________________________

dataGridView.Rows[e.RowIndex].Cells[0].Style.BackColor = Color.Red;
__________________________________________________________________________
谢谢,我试试。
__________________________________________________________________________
原创粉丝点击