Has anyone run into the EpiListBox not populating on Form Load?
Everything is hooked up and I have confirmed data is loading into the source data view.
public EpiListPickerPanel _prodGroupPnl;
public DataTable baqProdGroup;
public DataTable dtPickedProdGroups;
public EpiDataView dvProdGroup;
public EpiDataView dvPickedProdGroups;
public void InitializeProdGroupPicker()
{
dvPickedProdGroups = new EpiDataView();
dtPickedProdGroups = new DataTable();
dtPickedProdGroups.Columns.Add(new DataColumn("prodGroups", typeof(string)));
dvPickedProdGroups.dataView = dtPickedProdGroups.DefaultView;
oTrans.Add("dvPickedProdGroups", dvPickedProdGroups);
epiGroup_ProdGrup.Controls.Add(_prodGroupPnl);
_prodGroupPnl.PreserveSourceList = false;
_prodGroupPnl.SourceString = "ProdGroups";
_prodGroupPnl.TargetString = "PickedProdGroups";
_prodGroupPnl.InitDataBind("dvProdGroup", "ProdGrup_ProdCode", "ProdGrup_Description", '~', "prodGroups", "dvPickedProdGroups", oTrans);
}
public void LoadProdGroupView()
{
DynamicQueryAdapter dqaProdGroup = new DynamicQueryAdapter(oTrans);
dqaProdGroup.BOConnect();
QueryExecutionDataSet qedProdGroup = dqaProdGroup.GetQueryExecutionParametersByID("EVE_ProdGroup");
qedProdGroup.ExecutionParameter.Clear();
dqaProdGroup.ExecuteByID("EVE_ProdGroup", qedProdGroup);
baqProdGroup = dqaProdGroup.QueryResults.Tables["Results"];
dvProdGroup = new EpiDataView();
dvProdGroup.dataView = baqProdGroup.DefaultView;
oTrans.Add("dvProdGroup", dvProdGroup);
}