I am just learning to work with in the Epicor UI
customization but have been working with .NET and Infragistics for several
years.
This is a link to Infragistics on how to do it:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=7841
Below is an example I put together using Epicor 10 the SalesOrderForm,
Bill To combo, and the LinesGrid.
In the example I am adding an unbound column (BillTo) to the grid and using the already existing Bill To combo on the form.
Hope this helps, and curious if others have experience doing this.
//
**************************************************
// Custom code for SalesOrderForm
// Created: 6/17/2014 5:30:34 AM
//
**************************************************
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Erp.UI;
using Ice.Lib.Customization;
using Ice.Lib.ExtendedProps;
using Ice.Lib.Framework;
using Ice.Lib.Searches;
using Ice.UI.FormFunctions;
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.EpiUltraCombo
ucBillTo;
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
ucBillTo
= (Ice.Lib.Framework.EpiUltraCombo)csm.GetNativeControlReference
(“b7ebad77-c6fe-4050-85b7-47324b30ba45”);
myGrid
= (Ice.Lib.Framework.EpiUltraGrid) csm.GetNativeControlReference
(“bec51417-b286-4d61-a471-3912bc098905”);
//Add
an unbound column to the grid – this is where I will link the already existing
Bill To combo
myGrid.DisplayLayout.Bands[0].Columns.Add
(“BillTo”, “Bill To”);
myGrid.InitializeLayout
+= new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler
(grdSummaryOrderLines_InitializeLayout);
}
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.InitializeLayout
-= new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler
(grdSummaryOrderLines_InitializeLayout);
}
private
void grdSummaryOrderLines_InitializeLayout(object sender,
Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
{
e.Layout.Bands[0].Columns[“BillTo”].ValueList
= ucBillTo;
}
}