So as a follow up, I discovered another method to add the necessary columns directly to the Mtl EpiBinding…see code:
private void edvMtl_EpiViewNotification(EpiDataView view, EpiNotifyArgs args)
{
// ** Argument Properties and Uses **
// view.dataView[args.Row]["FieldName"]
// args.Row, args.Column, args.Sender, args.NotifyType
// NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
if ((args.NotifyType == EpiTransaction.NotifyType.Initialize))
{
if ((args.Row > -1))
{
if (!(edvMtl.dataView.Table.Columns.Contains("Width")))
{
edvMtl.dataView.Table.Columns.Add(new DataColumn("Width"));
edvMtl.dataView.Table.Columns["Width"].ExtendedProperties["ReadOnly"] = true;
}
if (!(edvMtl.dataView.Table.Columns.Contains("Length")))
{
edvMtl.dataView.Table.Columns.Add(new DataColumn("Length"));
edvMtl.dataView.Table.Columns["Length"].ExtendedProperties["ReadOnly"] = true;
}
if (!(edvMtl.dataView.Table.Columns.Contains("Thickness")))
{
edvMtl.dataView.Table.Columns.Add(new DataColumn("Thickness"));
edvMtl.dataView.Table.Columns["Thickness"].ExtendedProperties["ReadOnly"] = true;
}
}
}
}
Problem now is, how to populate the columns? There is data in the JobAsmbl table, can I link it through the Data Tools, or would it have to be coded directly also? Thanks for all your help so far!