2012-11-11 114 views

回答

7

您可以在RowStyle事件處理程序更改行的顏色漸變:

private void myGridView_RowStyle(object sender, 
         DevExpress.XtraGrid.Views.Grid.RowStyleEventArgs e) 
{ 
    e.Appearance.BackColor = Color.Green; 
    e.Appearance.BackColor2 = Color.LightGreen; 
} 

參見:Customizing Appearances of Individual Rows and Cells