/// <summary> /// Builds a list of Lookup Attributes /// </summary> private void BuildLookupAttributes() { DataView lkpAttributes = BOL.BusinessObject.GetAllAsDataView <BOL.LookupAttribute>(); AttributesGrid.DataSource = lkpAttributes; AttributesGrid.DataBind(); }
private DataRow GetRow(Document runningAsset) { var r = AttributesGrid.NewRow(); var isInserting = FillRow(runningAsset, r); if (!isInserting) { return(null); } r[DpowDocName] = runningAsset.Name; return(r); }
/// <summary> /// Bind lookup code columns/grids to their respecitve lookup codes /// </summary> private void BuildStageStageEventsAndAttributes() { SetColorAttributeId(); string sortExpr = LookupCode.LkpOrder + " ASC"; ProjectTypeGrid.DataSource = GetSortedGridDataSource("ProjectType"); ProjectTypeGrid.DataBind(); StagesGrid.DataSource = GetSortedGridDataSource("ProjectStages"); StagesGrid.DataBind(); EventsGrid.DataSource = GetSortedGridDataSource("ProjectStageEvents"); EventsGrid.DataBind(); AttributesGrid.DataSource = GetSortedGridDataSource("ProjectEventAttributes"); AttributesGrid.DataBind(); }