Group: Forum Members
Last Active: 14 Years Ago
Posts: 10,
Visits: 1
|
Good day. Have a problem. NDataGridView ignores cell styles, all displays with white background. Even such a trivial example: NDataGridView dataGridView; dataGridView = new NDataGridView (); Controls.Add (dataGridView);
dataGridView.Size = new Size (300, 200); dataGridView.ColumnCount = 2;
DataGridViewRow row = new DataGridViewRow (); DataGridViewCell cell = new DataGridViewTextBoxCell (); cell.Value = "asdasda"; cell.Style.BackColor = Color.Red; row.Cells.Add (cell); dataGridView.Rows.Add (row); Although if you enter into edit mode data in the cell then the background changes to a query. Help please, or else lose my job for the choice of components: (
|