示例#1
0
 private void dgvChallanList_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvChallanList.Columns[e.ColumnIndex].Name == "Action" && e.RowIndex != -1)
     {
         string            challanID    = dgvChallanList.CurrentRow.Cells["challanId"].Value.ToString();
         string            orderid      = dgvChallanList.CurrentRow.Cells["Orderid"].Value.ToString();
         PurchaseBillEntry objBillEntry = new PurchaseBillEntry(PurchaseBillEntry._CameFrom.Challan, challanID, orderid);
         objBillEntry.OnClose += GenerateChallanList;
         objBillEntry.Show(this);
     }
 }