Jinak zde uvadim pro zajimavost kod jak zmenit v gridu column na checkbox.
dataGridView1.AutoGenerateColumns = false;
dataGridView1.Columns.Remove(dataGridView1.Columns[2]);
DataGridViewCheckBoxColumn myCheck = new DataGridViewCheckBoxColumn();
myCheck.HeaderText = "ACTIVE";
myCheck.DataPropertyName = "ACTIVE";
myCheck.FalseValue = "1";
myCheck.TrueValue = "0";
dataGridView1.Columns.Insert(1, myCheck);
|