private void SearchBooking() { try { frmSearchBooking frm = new frmSearchBooking(txtCustomerName.Text, "", txtCustomerMobileNo.Text.Trim()); frm.ShowDialog(); if (frm.IsSelected) { txtCustomerName.Text = frm.CustomerName; string Pick = frm.from; string Destination = frm.to; int? jobId = frm.JobId; string pickupDate = frm.pickUpdate; string Refno = frm.RefNo; string Vechile = frm.Vechile; GridViewRowInfo row; row = grdLister.Rows.AddNew(); row.Cells[COLS.BookingId].Value = jobId; row.Cells[COLS.PickupPoint].Value = Pick; row.Cells[COLS.Destination].Value = Destination; row.Cells[COLS.PickupDate].Value = pickupDate; row.Cells[COLS.RefNumber].Value = Refno; row.Cells[COLS.Vehicle].Value = Vechile; frm.Dispose(); return; } } catch (Exception ex) { } }