I found the following code example in the Visual Studio help:
private void AddOutOfOfficeColumn()
{
DataGridViewCheckBoxColumn column = new
DataGridViewCheckBoxColumn();
{
column.HeaderText = ColumnName.OutOfOffice.ToString();
column.Name = ColumnName.OutOfOffice.ToString();
column.AutoSizeMode =
DataGridViewAutoSizeColumnMode.DisplayedCells;
column.FlatStyle = FlatStyle.Standard;
column.ThreeState = true;
column.CellTemplate = new DataGridViewCheckBoxCell();
column.CellTemplate.Style.BackColor = Color.Beige;
}
DataGridView1.Columns.Insert(0, column);
}
I am wondering what this means when the the curly braces are used
after the constructor of the DataGridViewCheckBoxColumn. Thanks in
advance.