/// <summary> /// Performs basic instance initialization for a data control field. /// </summary> /// <param name="sortingEnabled">A value that indicates whether the control supports the sorting of columns of data.</param> /// <param name="control">The data control that owns the <see cref="T:System.Web.UI.WebControls.DataControlField" />.</param> /// <returns> /// Always returns false. /// </returns> public override bool Initialize(bool sortingEnabled, Control control) { base.Initialize(sortingEnabled, control); PersonMergeFieldHeaderTemplate headerTemplate = new PersonMergeFieldHeaderTemplate(); headerTemplate.LinkButtonClick += HeaderTemplate_LinkButtonClick; this.HeaderTemplate = headerTemplate; this.ParentGrid = control as Grid; return(false); }
/// <summary> /// Performs basic instance initialization for a data control field. /// </summary> /// <param name="sortingEnabled">A value that indicates whether the control supports the sorting of columns of data.</param> /// <param name="control">The data control that owns the <see cref="T:System.Web.UI.WebControls.DataControlField" />.</param> /// <returns> /// Always returns false. /// </returns> public override bool Initialize( bool sortingEnabled, Control control ) { base.Initialize( sortingEnabled, control ); PersonMergeFieldHeaderTemplate headerTemplate = new PersonMergeFieldHeaderTemplate(); headerTemplate.LinkButtonClick += HeaderTemplate_LinkButtonClick; this.HeaderTemplate = headerTemplate; this.ParentGrid = control as Grid; return false; }