private void grd_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         int planId = int.Parse(grd.Rows[e.RowIndex].Cells["Id"].Value.ToString());
         frmMedicinePlanDetail frmedit = new frmMedicinePlanDetail(planId);
         frmedit.StartPosition = FormStartPosition.CenterScreen;
         frmedit.ShowDialog();
         if (frmedit.Status != Constants.Status_Delete && !string.IsNullOrEmpty(frmedit.Status))
         {
             grd.Rows[e.RowIndex].Cells["Status"].Value = frmedit.Status;
         }
         else
         {
             BindGridViewData();
         }
     }
     catch (Exception ex)
     {
     }
 }
 private void grd_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         int planId = int.Parse(grd.Rows[e.RowIndex].Cells["Id"].Value.ToString());
         frmMedicinePlanDetail frmedit = new frmMedicinePlanDetail(planId);
         frmedit.StartPosition = FormStartPosition.CenterScreen;
         frmedit.ShowDialog();
         if (frmedit.Status != Constants.Status_Delete && !string.IsNullOrEmpty(frmedit.Status))
             grd.Rows[e.RowIndex].Cells["Status"].Value = frmedit.Status;
         else
             BindGridViewData();
     }
     catch (Exception ex)
     {
     }
 }