读书人

请教怎样在DataGridView中设置某一行或

发布时间: 2012-02-06 15:52:45 作者: rapoo

请问怎样在DataGridView中设置某一行或若干行的字体颜色?
我想将DataGridView表中新添加的记录设置为与原有记录不同的颜色,请大家指教!

[解决办法]
Dim DataGridViewCellStyleColorBlue As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle

程序里
DataGridView1.Rows(1).Cells(1).Style = DataGridViewCellStyleColorBlue

读书人网 >VB Dotnet

热点推荐