Custom field in Inspection processing PO grid list

Hi Experts,

I’m trying to add LegalNumber from RcvDtl in InspectionProcession PO gridlist but in vain, I would appreciate if you can send sample code or guide me on best approach to handle this in Epicor 10.2.500.

Thanks in advance.

public class Script
	// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
	// Begin Wizard Added Module Level Variables **

	// End Wizard Added Module Level Variables **

	// Add Custom Module Level Variables Here **
Ice.Lib.Framework.EpiUltraGrid myGrid;

	public void InitializeCustomCode()
		// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
		// Begin Wizard Added Variable Initialization

		// End Wizard Added Variable Initialization

		// Begin Wizard Added Custom Method Calls

		// End Wizard Added Custom Method Calls
		myGrid = ((Ice.Lib.Framework.EpiUltraGrid)csm.GetNativeControlReference("b598303d-b230-4cca-a67c-74d42489c145"));
		myGrid.DisplayLayout.Bands[0].Columns.Add("LegalNumber", "LegalNumber");
// Initialize Row
		myGrid.InitializeRow += new Infragistics.Win.UltraWinGrid.InitializeRowEventHandler(grdList_InitializeRow);

	private void grdList_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)
		if (!String.IsNullOrEmpty(e.Row.Cells["PackSlip"].Value.ToString()))
			EpiDataView edv = oTrans.Factory("porView");
			if (edv.Row>= 0)
		string strLegalNumber = Convert.ToString(edv.dataView[edv.Row]["LegalNumber"]);
		e.Row.Cells["LegalNumber"].Value = strLegalNumber;

	public void DestroyCustomCode()
		// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
		// Begin Wizard Added Object Disposal

		// End Wizard Added Object Disposal

		// Begin Custom Code Disposal

		// End Custom Code Disposal

		myGrid.InitializeRow -= new Infragistics.Win.UltraWinGrid.InitializeRowEventHandler(grdList_InitializeRow);

What is not working? Are you getting an error?

1 Like

No error. Added custom column in grid is shown blank, porView doesn’t have reference of LegalNumber.