25-07-16, 08:27 AM
كود :
Private Sub DataGridView1_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting
DataGridView1.RowsDefaultCellStyle.BackColor = Color.AliceBlue
DataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.LightCoral
End Subضع الكود في الفورم ليعمل لك صف لون وصف لون آخر.

