private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { New_Warranty_Claim a = new New_Warranty_Claim(); 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 claimNo = row["claimNo"].ToString(); New_Warranty_Claim warrenty1 = new New_Warranty_Claim(); warrenty1.claimeNo = claimNo; warrenty1.ShowDialog(); loadData(); } catch (Exception ex) { } }