private void repositoryItemCheckEdit1_CheckedChanged(object sender, EventArgs e) { System.Data.DataRow row = gridView1.GetDataRow(gridView1.FocusedRowHandle); if (row["status"].ToString() == "RFQ ISSUED") { MessageBox.Show("RFQ Already Created...!", "ALERT", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { String no = row["prNo"].ToString(); New_RFQ rfq = new New_RFQ(no); rfq.ShowDialog(); loadData(); } }
private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { New_RFQ a = new New_RFQ(""); a.ShowDialog(); }