16,717
社区成员
发帖
与我相关
我的任务
分享Me.DataGridView1.DefaultCellStyle.ForeColor = Color.Black '加上這一句
DataGridView1.Rows(DataGridView1.CurrentRow.Index.ToString()).DefaultCellStyle.ForeColor = Color.Blue
Dim i As Integer
for i =0 to DataGridView1.Rows.Count - 1
if i = DataGridView1.CurrentRow.Index then
DataGridView1.Rows(i).DefaultCellStyle.ForeColor = Color.Blue
else
DataGridView1.Rows(i).DefaultCellStyle.ForeColor = Color.Black
end if
next