private void TurnOnEditBth_Click(object sender, EventArgs e) { SqldataGridView.ReadOnly = false; CreateBtn.Enabled = false; UpdateBtn.Enabled = true; DeleteBtn.Enabled = true; TurnOnEditBth.Hide(); TurnOffEditBth.Show(); }
public Form1() { InitializeComponent(); SqldataGridView.Hide(); tableLayoutPanel1.Hide(); CreateBtn.Hide(); UpdateBtn.Hide(); UpdateBtn.Enabled = false; DeleteBtn.Hide(); DeleteBtn.Enabled = false; TurnOnEditBth.Hide(); TurnOffEditBth.Hide(); SaveBtn.Hide(); tableLayoutPanel2.Hide(); tableLayoutPanel3.Hide(); SqldataGridView.ReadOnly = false; }