public void InitializeGrid()
{
grdProperties.Rows.Clear();
grdProperties.Columns.Clear();
DataGridViewColumn colEnable = new DataGridViewColumn();
colEnable.Name = "COL_ENABLE";
colEnable.HeaderText = "Enable";
colEnable.CellTemplate = new DataGridViewCheckBoxCell();
colEnable.Width = 60;
DataGridViewColumn colNull = new DataGridViewColumn();
colNull.Name = "COL_NULL";
colNull.HeaderText = "Null";
colNull.CellTemplate = new DataGridViewCheckBoxCell();
colNull.Width = 60;
DataGridViewColumn colName = new DataGridViewColumn();
colName.Name = "COL_NAME";
colName.HeaderText = "Name";
colName.ReadOnly = true;
colName.CellTemplate = new DataGridViewTextBoxCell();
DataGridViewColumn colValue = new DataGridViewColumn();
colValue.Name = "COL_VALUE";
colValue.HeaderText = "Value";
colValue.CellTemplate = new DataGridViewTextBoxCell();
colValue.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
grdProperties.Columns.Add(colEnable);
grdProperties.Columns.Add(colNull);
grdProperties.Columns.Add(colName);
grdProperties.Columns.Add(colValue);
}