private void Btn_New_Click(object sender, EventArgs e)
        {
            Btn_Add.Enabled    = true;
            Btn_Update.Enabled = false;

            Com_Class.SelectedValue = 0;
            Com_Days.SelectedIndex  = -1;
            DTP_time.Value          = Convert.ToDateTime(DateTime.Now);
            DGV_Session.ClearSelection();
        }
        private void DGV_Session_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                if (DGV_Session.SelectedRows.Count == 0)
                {
                    return;
                }

                Com_Class.Text = DGV_Session.CurrentRow.Cells[1].Value.ToString();
                Com_Days.Text  = DGV_Session.CurrentRow.Cells[2].Value.ToString();
                DTP_time.Value = Convert.ToDateTime(DGV_Session.CurrentRow.Cells[3].Value.ToString());

                DGV_Session.ClearSelection();
                Btn_Update.Enabled = true;
                Enable_BtnAdd      = false;
                Btn_Add.Enabled    = false;
            }
            catch (Exception ex) { }
        }
 private void Frm_Session_Load(object sender, EventArgs e)
 {
     DGV_Session.ClearSelection();
 }