private void BtnCreate_Click(object sender, EventArgs e)
        {
            frmAddProduct frm = new frmAddProduct();

            frm.lblContext.Text = "เพิ่มรายการยา เวชภัณฑ์ วัสดุการแพทย์ อุปกรณ์ต่าง ๆ ";
            frm.btnUpdate.Hide();
            frm.Show();
        }
        }// Search by TextChange -- END

        // Edit and Delete by Column.Name -- START
        private void DgvProduct_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            frmAddProduct frmAddProduct = new frmAddProduct();
            string        colName       = dgvProduct.Columns[e.ColumnIndex].Name;

            if (colName == "delete")
            {
                try
                {
                    if (MessageBox.Show("คุณต้องการลบข้อมูล ใช่หรือไม่?", title, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                    {
                        cn.Open();
                        cm = new MySqlCommand("delete from tbl_product where id like '" + dgvProduct.CurrentRow.Cells[1].Value.ToString() + "' ", cn);
                        cm.ExecuteNonQuery();
                        cn.Close();
                        MessageBox.Show("ลบข้อมูลสำเร็จแล้ว!", title, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                        loadProduct();
                    }
                }
                catch
                {
                }
            }
        }// Edit and Delete by Column.Name -- END