代码: #region DataGridVeiw Style System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); this.DataGridView1 = System.Drawing.Color.LightCyan; this.DataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1 ; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
DataGridViewElementStates elementState, object value, object formattedValue, string errorText, DataGridViewCellStyle