private void grid_CellClick(object sender, GridCellClickEventArgs e) { if (e.GridCell.GridColumn == gcPartCode) { PopupStockChoice frm = new PopupStockChoice(); frm.ShowDialog(); if (frm.ChoicePartCode != "") { grow[gcPartCode].Value = frm.ChoicePartCode; grow[gcBatch].Value = frm.ChoicePartBatch; grow[gcFromLocCode].Value = frm.ChoiceSLoc; } } }
private void grid_CellClick(object sender, GridCellClickEventArgs e) { if (e.GridCell.GridColumn == gcPartCode) { PopupStockChoice frm = new PopupStockChoice(); frm.ShowDialog(); if (frm.ChoicePartCode != "") { grow[gcPartCode].Value = frm.ChoicePartCode; grow[gcBatch].Value = frm.ChoicePartBatch; grow[gcFromLocCode].Value = frm.ChoiceSLoc; grow[gcUnitPrice].Value = frm.ChoiceUnitPrice; } if (grow[gcUID].Value.ToString() == "0") { grow[gcTakeTime].Value = DateTime.Now; } } }