private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            //DisplayServiceTypes pds = new DisplayServiceTypes(ident, dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());
            //pds.Show();

            if (e.ColumnIndex == 7)
            {
                AddServiceOrder pds = new AddServiceOrder(ident, dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(), dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString());

                pds.ShowDialog();
                string myString = pds.ResultString;
                CmbCustomer.SelectedValue = myString;

                        bind_data("Service_Order", myString);

            }

            if (e.ColumnIndex == 8)
            {
                string Delete_order = "Delete from Service_Order where Docnum =" + dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                string Delete_orderDtl = "Delete from Service_Order_Details where Docnum =" + dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();

                string returncode = Utilities.DataBaseUtility.Execute(Delete_order, base.ident);
                 returncode = Utilities.DataBaseUtility.Execute(Delete_orderDtl, base.ident);
                 bind_data("Service_Order", dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString());

            }
        }
        private void btnCusID_Click(object sender, EventArgs e)
        {
            if (CmbCustomer.SelectedIndex != -1)
            {
                string Selectedcustomer = ((DataRowView)CmbCustomer.SelectedItem).Row["CustomerID"].ToString();
                if (!String.IsNullOrEmpty(Selectedcustomer))
                {

                    AddServiceOrder pds = new AddServiceOrder(ident, "", Selectedcustomer);

                    pds.ShowDialog();
                    string myString = pds.ResultString;
                    CmbCustomer.SelectedValue = myString;

                    bind_data("Service_Order", myString);

                }
            }
        }