private void grid_CellClick(object sender, GridCellClickEventArgs e) { if (e.GridCell.GridColumn == gcPartCode) { PopupMaterialChoice frm = new PopupMaterialChoice(); frm.ShowDialog(); if (frm.ChoicePartCode != "") { grow[gcPartCode].Value = frm.ChoicePartCode; } } }
private void grid_CellClick(object sender, GridCellClickEventArgs e) { if (e.GridCell.GridColumn == gcPartCode) { PopupMaterialChoice frm = new PopupMaterialChoice(); frm.ShowDialog(); if (frm.ChoicePartCode != "") { grow[gcPartCode].Value = frm.ChoicePartCode; } if (grow[gcUID].Value.ToString() == "0") { grow[gcAskTime].Value = DateTime.Now; } } }