private void grd_Services_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         if (e.ColumnIndex == 1)
         {
             Ordermanagement_01.Abstractor.Abstractor_Entry abstractor = new Ordermanagement_01.Abstractor.Abstractor_Entry(grd_Services.Rows[e.RowIndex].Cells[1].Value.ToString(), grd_Services.Rows[e.RowIndex].Cells[9].Value.ToString(), "Update", userid);
             abstractor.Show();
         }
         else if (e.ColumnIndex == 10)
         {
             Ordermanagement_01.Abstractor.Abstractor_State_County_Details abstractor = new Ordermanagement_01.Abstractor.Abstractor_State_County_Details(grd_Services.Rows[e.RowIndex].Cells[1].Value.ToString(), grd_Services.Rows[e.RowIndex].Cells[9].Value.ToString(), userid);
             abstractor.Show();
         }
         else if (e.ColumnIndex == 12)
         {
             dialogResult = MessageBox.Show("Do you Want to Delete?", "Some Title", MessageBoxButtons.YesNo);
             if (dialogResult == DialogResult.Yes)
             {
                 Hashtable htselect = new System.Collections.Hashtable();
                 DataTable dtselect = new DataTable();
                 htselect.Add("@Trans", "DELETE");
                 htselect.Add("@Abstractor_Id", grd_Services.Rows[e.RowIndex].Cells[9].Value.ToString());
                 dtselect = dataaccess.ExecuteSP("Sp_Abstractor_Detail", htselect);
                 Gridview_Bind_Abstractor_Details();
             }
             else if (dialogResult == DialogResult.No)
             {
                 //do something else
             }
         }
     }
 }
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     Ordermanagement_01.Abstractor.Abstractor_Entry abstractor = new Ordermanagement_01.Abstractor.Abstractor_Entry("", "0", "Insert", userid);
     abstractor.Show();
 }
 private void FrimMasterToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Ordermanagement_01.Abstractor.Abstractor_Entry abstractor = new Ordermanagement_01.Abstractor.Abstractor_Entry("", "0", "Insert", userid);
     abstractor.Show();
 }