Guest User

Untitled

a guest
Nov 20th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. exampleDataGridView.DataSource = bindingSource1;
  2.  
  3. exampleDataGridView.Columns.Add(new DataGridViewTextBoxColumn());
  4. exampleDataGridView.Columns[resultDataGridView.ColumnCount - 1].DataPropertyName = "Type";
  5. exampleDataGridView.Columns[resultDataGridView.ColumnCount - 1].Name = "type";
  6.  
  7. (then some more columns generated in the same manner)
  8.  
  9. exampleDataGridView.Rows[3].DefaultCellStyle.BackColor = Color.Red;
  10. exampleDataGridView.Columns[3].DefaultCellStyle.BackColor = Color.Red;
  11. exampleDataGridView.DefaultCellStyle.BackColor = Color.Red;
Add Comment
Please, Sign In to add comment