private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Proforma_Invoice a = new Proforma_Invoice();

            a.ShowDialog();
            loaddata();
        }
 private void gridView1_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
 {
     try
     {
         System.Data.DataRow row       = gridView1.GetDataRow(gridView1.FocusedRowHandle);
         string           deliveryNo   = row["pinvoice_no"].ToString();
         Proforma_Invoice deliveryNote = new Proforma_Invoice();
         deliveryNote.proinvoiceno = deliveryNo;
         deliveryNote.ShowDialog();
         loaddata();
     }
     catch (Exception) { }
 }