Example #1
0
        protected virtual void OnItemDataBound(DataListItemEventArgs e)
        {
            DataListItemEventHandler itemDataBound = (DataListItemEventHandler)Events [itemDataBoundEvent];

            if (itemDataBound != null)
            {
                itemDataBound(this, e);
            }
        }
        protected virtual void OnItemCreated(DataListItemEventArgs e)
        {
            DataListItemEventHandler handler = (DataListItemEventHandler)base.Events[EventItemCreated];

            if (handler != null)
            {
                handler(this, e);
            }
        }
        protected virtual void OnItemDataBound(DataListItemEventArgs e)
        {
            DataListItemEventHandler handler = (DataListItemEventHandler)base.Events[EventItemDataBound];

            if (handler != null)
            {
                handler(this, e);
            }
            EventHandler <WizardSideBarListControlItemEventArgs> handler2 = (EventHandler <WizardSideBarListControlItemEventArgs>)base.Events[EventWizardListItemDataBound];

            if (handler2 != null)
            {
                DataListItem container = e.Item;
                WizardSideBarListControlItemEventArgs args = new WizardSideBarListControlItemEventArgs(new WizardSideBarListControlItem(container.DataItem, container.ItemType, container.ItemIndex, container));
                handler2(this, args);
            }
        }
Example #4
0
 protected override void AttachChildControls()
 {
     this.dataListPointDetails = (DataList)this.FindControl("dataListPointDetails");
     this.dataListPointDetails.ItemDataBound += new DataListItemEventHandler(this.dataListPointDetails_ItemDataBound);
 }