Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exampleDataGridView.DataSource = bindingSource1;
- exampleDataGridView.Columns.Add(new DataGridViewTextBoxColumn());
- exampleDataGridView.Columns[resultDataGridView.ColumnCount - 1].DataPropertyName = "Type";
- exampleDataGridView.Columns[resultDataGridView.ColumnCount - 1].Name = "type";
- (then some more columns generated in the same manner)
- exampleDataGridView.Rows[3].DefaultCellStyle.BackColor = Color.Red;
- exampleDataGridView.Columns[3].DefaultCellStyle.BackColor = Color.Red;
- exampleDataGridView.DefaultCellStyle.BackColor = Color.Red;
Add Comment
Please, Sign In to add comment