Show / Hide Table of Contents

Class SectionAnswersGridItem

Store a list of answers posted by the user in a section and show an overview of all answers / sections in a grid

Inheritance
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
AnswerItem
SectionAnswersGridItem
Implements
System.ComponentModel.IComponent
System.IDisposable
System.Web.UI.IParserAccessor
System.Web.UI.IUrlResolutionService
System.Web.UI.IDataBindingsAccessor
System.Web.UI.IControlBuilderAccessor
System.Web.UI.IControlDesignerAccessor
System.Web.UI.IExpressionsAccessor
System.Web.UI.IAttributeAccessor
System.Web.UI.INamingContainer
System.Web.UI.IPostBackDataHandler
Inherited Members
AnswerItem.AnswerPublished
AnswerItem.AnswerPublisherCreated
AnswerItem.LoadPostData(String, NameValueCollection)
AnswerItem.OnAnswerMessage(AnswerItemMessageEventArgs)
AnswerItem.OnAnswerPost(AnswerItemEventArgs)
AnswerItem.OnAnswerPublished(AnswerItemEventArgs)
AnswerItem.OnAnswerPublisherCreated(AnswerItemEventArgs)
AnswerItem.OnInvalidAnswer(AnswerItemInvalidEventArgs)
AnswerItem.OnPreRender(EventArgs)
AnswerItem.RaisePostDataChangedEvent()
AnswerItem.AnswerId
AnswerItem.AnswerStyle
AnswerItem.DefaultText
AnswerItem.HasSubscribers
AnswerItem.ImageUrl
AnswerItem.LanguageCode
AnswerItem.Question
AnswerItem.QuestionId
AnswerItem.RenderMode
AnswerItem.SectionContainer
AnswerItem.ShowAnswerText
AnswerItem.Text
AnswerItem.Css
System.Web.UI.WebControls.WebControl.AddAttributesToRender(System.Web.UI.HtmlTextWriter)
System.Web.UI.WebControls.WebControl.ApplyStyle(System.Web.UI.WebControls.Style)
System.Web.UI.WebControls.WebControl.CopyBaseAttributes(System.Web.UI.WebControls.WebControl)
System.Web.UI.WebControls.WebControl.CreateControlStyle()
System.Web.UI.WebControls.WebControl.LoadViewState(System.Object)
System.Web.UI.WebControls.WebControl.TrackViewState()
System.Web.UI.WebControls.WebControl.MergeStyle(System.Web.UI.WebControls.Style)
System.Web.UI.WebControls.WebControl.Render(System.Web.UI.HtmlTextWriter)
System.Web.UI.WebControls.WebControl.RenderBeginTag(System.Web.UI.HtmlTextWriter)
System.Web.UI.WebControls.WebControl.RenderEndTag(System.Web.UI.HtmlTextWriter)
System.Web.UI.WebControls.WebControl.RenderContents(System.Web.UI.HtmlTextWriter)
System.Web.UI.WebControls.WebControl.SaveViewState()
System.Web.UI.WebControls.WebControl.System.Web.UI.IAttributeAccessor.GetAttribute(System.String)
System.Web.UI.WebControls.WebControl.System.Web.UI.IAttributeAccessor.SetAttribute(System.String, System.String)
System.Web.UI.WebControls.WebControl.AccessKey
System.Web.UI.WebControls.WebControl.Attributes
System.Web.UI.WebControls.WebControl.BackColor
System.Web.UI.WebControls.WebControl.BorderColor
System.Web.UI.WebControls.WebControl.BorderWidth
System.Web.UI.WebControls.WebControl.BorderStyle
System.Web.UI.WebControls.WebControl.ControlStyle
System.Web.UI.WebControls.WebControl.ControlStyleCreated
System.Web.UI.WebControls.WebControl.CssClass
System.Web.UI.WebControls.WebControl.DisabledCssClass
System.Web.UI.WebControls.WebControl.Style
System.Web.UI.WebControls.WebControl.Enabled
System.Web.UI.WebControls.WebControl.EnableTheming
System.Web.UI.WebControls.WebControl.Font
System.Web.UI.WebControls.WebControl.ForeColor
System.Web.UI.WebControls.WebControl.HasAttributes
System.Web.UI.WebControls.WebControl.Height
System.Web.UI.WebControls.WebControl.IsEnabled
System.Web.UI.WebControls.WebControl.SupportsDisabledAttribute
System.Web.UI.WebControls.WebControl.SkinID
System.Web.UI.WebControls.WebControl.TabIndex
System.Web.UI.WebControls.WebControl.TagKey
System.Web.UI.WebControls.WebControl.TagName
System.Web.UI.WebControls.WebControl.ToolTip
System.Web.UI.WebControls.WebControl.Width
System.Web.UI.Control.ResolveAdapter()
System.Web.UI.Control.HasEvents()
System.Web.UI.Control.GetRouteUrl(System.Object)
System.Web.UI.Control.GetRouteUrl(System.String, System.Object)
System.Web.UI.Control.GetRouteUrl(System.Web.Routing.RouteValueDictionary)
System.Web.UI.Control.GetRouteUrl(System.String, System.Web.Routing.RouteValueDictionary)
System.Web.UI.Control.GetUniqueIDRelativeTo(System.Web.UI.Control)
System.Web.UI.Control.ApplyStyleSheetSkin(System.Web.UI.Page)
System.Web.UI.Control.OnDataBinding(System.EventArgs)
System.Web.UI.Control.DataBind()
System.Web.UI.Control.DataBind(System.Boolean)
System.Web.UI.Control.DataBindChildren()
System.Web.UI.Control.AddParsedSubObject(System.Object)
System.Web.UI.Control.EnsureID()
System.Web.UI.Control.OnInit(System.EventArgs)
System.Web.UI.Control.ClearChildState()
System.Web.UI.Control.ClearChildControlState()
System.Web.UI.Control.ClearChildViewState()
System.Web.UI.Control.ClearEffectiveClientIDMode()
System.Web.UI.Control.ClearCachedClientID()
System.Web.UI.Control.Focus()
System.Web.UI.Control.LoadControlState(System.Object)
System.Web.UI.Control.MapPathSecure(System.String)
System.Web.UI.Control.OpenFile(System.String)
System.Web.UI.Control.OnLoad(System.EventArgs)
System.Web.UI.Control.BuildProfileTree(System.String, System.Boolean)
System.Web.UI.Control.SaveControlState()
System.Web.UI.Control.RenderChildren(System.Web.UI.HtmlTextWriter)
System.Web.UI.Control.RenderControl(System.Web.UI.HtmlTextWriter)
System.Web.UI.Control.RenderControl(System.Web.UI.HtmlTextWriter, System.Web.UI.Adapters.ControlAdapter)
System.Web.UI.Control.OnUnload(System.EventArgs)
System.Web.UI.Control.Dispose()
System.Web.UI.Control.RaiseBubbleEvent(System.Object, System.EventArgs)
System.Web.UI.Control.OnBubbleEvent(System.Object, System.EventArgs)
System.Web.UI.Control.AddedControl(System.Web.UI.Control, System.Int32)
System.Web.UI.Control.CreateControlCollection()
System.Web.UI.Control.ResolveUrl(System.String)
System.Web.UI.Control.ResolveClientUrl(System.String)
System.Web.UI.Control.FindControl(System.String)
System.Web.UI.Control.FindControl(System.String, System.Int32)
System.Web.UI.Control.GetDesignModeState()
System.Web.UI.Control.HasControls()
System.Web.UI.Control.IsLiteralContent()
System.Web.UI.Control.EnsureChildControls()
System.Web.UI.Control.RemovedControl(System.Web.UI.Control)
System.Web.UI.Control.SetDesignModeState(System.Collections.IDictionary)
System.Web.UI.Control.SetRenderMethodDelegate(System.Web.UI.RenderMethod)
System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(System.Object)
System.Web.UI.Control.System.Web.UI.IControlDesignerAccessor.GetDesignModeState()
System.Web.UI.Control.System.Web.UI.IControlDesignerAccessor.SetDesignModeState(System.Collections.IDictionary)
System.Web.UI.Control.System.Web.UI.IControlDesignerAccessor.SetOwnerControl(System.Web.UI.Control)
System.Web.UI.Control.ClientIDMode
System.Web.UI.Control.ClientID
System.Web.UI.Control.ClientIDSeparator
System.Web.UI.Control.Context
System.Web.UI.Control.Adapter
System.Web.UI.Control.DesignMode
System.Web.UI.Control.Events
System.Web.UI.Control.ID
System.Web.UI.Control.IsChildControlStateCleared
System.Web.UI.Control.EnableViewState
System.Web.UI.Control.ViewStateMode
System.Web.UI.Control.IsViewStateEnabled
System.Web.UI.Control.NamingContainer
System.Web.UI.Control.IdSeparator
System.Web.UI.Control.LoadViewStateByID
System.Web.UI.Control.Page
System.Web.UI.Control.RenderingCompatibility
System.Web.UI.Control.TemplateControl
System.Web.UI.Control.Parent
System.Web.UI.Control.TemplateSourceDirectory
System.Web.UI.Control.AppRelativeTemplateSourceDirectory
System.Web.UI.Control.Site
System.Web.UI.Control.Visible
System.Web.UI.Control.UniqueID
System.Web.UI.Control.HasChildViewState
System.Web.UI.Control.Controls
System.Web.UI.Control.ValidateRequestMode
System.Web.UI.Control.ViewState
System.Web.UI.Control.ViewStateIgnoresCase
System.Web.UI.Control.ChildControlsCreated
System.Web.UI.Control.IsTrackingViewState
System.Web.UI.Control.System.Web.UI.IDataBindingsAccessor.HasDataBindings
System.Web.UI.Control.System.Web.UI.IDataBindingsAccessor.DataBindings
System.Web.UI.Control.System.Web.UI.IControlDesignerAccessor.UserData
System.Web.UI.Control.System.Web.UI.IControlBuilderAccessor.ControlBuilder
System.Web.UI.Control.System.Web.UI.IExpressionsAccessor.HasExpressions
System.Web.UI.Control.System.Web.UI.IExpressionsAccessor.Expressions
System.Web.UI.Control.Disposed
System.Web.UI.Control.DataBinding
System.Web.UI.Control.Init
System.Web.UI.Control.Load
System.Web.UI.Control.PreRender
System.Web.UI.Control.Unload
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Votations.NSurvey.WebControls.UI
Assembly: SurveyProject.WebControls.dll
Syntax
public class SectionAnswersGridItem : AnswerItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, INamingContainer, IPostBackDataHandler

Properties

AddSectionLinkText

Text show to the user to add a new section

Declaration
public string AddSectionLinkText { get; set; }
Property Value
Type Description
System.String

Answers

Answers infos

Declaration
public AnswerData Answers { get; set; }
Property Value
Type Description
AnswerData

DeleteSectionLinkText

Text show to the user to delete a section

Declaration
public string DeleteSectionLinkText { get; set; }
Property Value
Type Description
System.String

EditSectionLinkText

Text show to the user to edit a section

Declaration
public string EditSectionLinkText { get; set; }
Property Value
Type Description
System.String

GridAnswers

Answers that will be shown in the section's grid overview

Declaration
public int[] GridAnswers { get; set; }
Property Value
Type Description
System.Int32[]

GridVoterAnswers

Contains all the answers to all sections

Declaration
public GridAnswerDataCollection GridVoterAnswers { get; set; }
Property Value
Type Description
GridAnswerDataCollection

MaxSections

how many section is the user allowed to create

Declaration
public int MaxSections { get; set; }
Property Value
Type Description
System.Int32

SectionGridAnswersAlternatingItemStyle

Sets the style for the section's answer grid overview items

Declaration
public Style SectionGridAnswersAlternatingItemStyle { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.Style

SectionGridAnswersHeaderStyle

Sets the style for the section's answer grid header

Declaration
public Style SectionGridAnswersHeaderStyle { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.Style

SectionGridAnswersItemStyle

Sets the style for the section's answer grid overview items

Declaration
public Style SectionGridAnswersItemStyle { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.Style

SectionGridAnswersStyle

Sets the style for the section's answer grid table

Declaration
public Style SectionGridAnswersStyle { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.Style

Methods

AddSectionGridButton_Click(Object, CommandEventArgs)

A new section has been requested

Declaration
protected virtual void AddSectionGridButton_Click(object sender, CommandEventArgs e)
Parameters
Type Name Description
System.Object sender
System.Web.UI.WebControls.CommandEventArgs e

BindSectionGrid()

Declaration
public void BindSectionGrid()

CreateChildControls()

Creates the grid control "layout" and adds it to the overall control tree

Declaration
protected override void CreateChildControls()
Overrides
System.Web.UI.Control.CreateChildControls()

DeleteSectionGridButton_Click(Object, CommandEventArgs)

A section must be deleted

Declaration
protected virtual void DeleteSectionGridButton_Click(object sender, CommandEventArgs e)
Parameters
Type Name Description
System.Object sender
System.Web.UI.WebControls.CommandEventArgs e

EditSectionGridButton_Click(Object, CommandEventArgs)

A section edit has been requested

Declaration
protected virtual void EditSectionGridButton_Click(object sender, CommandEventArgs e)
Parameters
Type Name Description
System.Object sender
System.Web.UI.WebControls.CommandEventArgs e

GetFileRow(Int32, String, Int32, String, String)

Declaration
protected virtual TableRow GetFileRow(int fileId, string groupGuid, int fileSize, string fileName, string fileType)
Parameters
Type Name Description
System.Int32 fileId
System.String groupGuid
System.Int32 fileSize
System.String fileName
System.String fileType
Returns
Type Description
System.Web.UI.WebControls.TableRow

GetPostedAnswerData()

Returns the all answers stored in the grid to the event subscribers once the survey's page get posted

Declaration
protected override PostedAnswerDataCollection GetPostedAnswerData()
Returns
Type Description
PostedAnswerDataCollection
Overrides
AnswerItem.GetPostedAnswerData()

GetSectionCount()

Returns the section count based on the current GridVoterAnswers content

Declaration
public int GetSectionCount()
Returns
Type Description
System.Int32

OnSectionAdd(SectionAnswersItemEventArgs)

Post an event to notify subscribers that a new section must be shown

Declaration
protected virtual void OnSectionAdd(SectionAnswersItemEventArgs e)
Parameters
Type Name Description
SectionAnswersItemEventArgs e

OnSectionDelete(SectionAnswersItemEventArgs)

Post an event to notify subscribers that a section has been deleted

Declaration
protected virtual void OnSectionDelete(SectionAnswersItemEventArgs e)
Parameters
Type Name Description
SectionAnswersItemEventArgs e

OnSectionEdit(SectionAnswersItemEventArgs)

Post an event to notify subscribers that a section need to be edited

Declaration
protected virtual void OnSectionEdit(SectionAnswersItemEventArgs e)
Parameters
Type Name Description
SectionAnswersItemEventArgs e

Events

AddSection

Declaration
public event SectionAnswersEventHandler AddSection
Event Type
Type Description
SectionAnswersEventHandler

DeleteSection

Declaration
public event SectionAnswersEventHandler DeleteSection
Event Type
Type Description
SectionAnswersEventHandler

EditSection

Declaration
public event SectionAnswersEventHandler EditSection
Event Type
Type Description
SectionAnswersEventHandler

Implements

System.ComponentModel.IComponent
System.IDisposable
System.Web.UI.IParserAccessor
System.Web.UI.IUrlResolutionService
System.Web.UI.IDataBindingsAccessor
System.Web.UI.IControlBuilderAccessor
System.Web.UI.IControlDesignerAccessor
System.Web.UI.IExpressionsAccessor
System.Web.UI.IAttributeAccessor
System.Web.UI.INamingContainer
System.Web.UI.IPostBackDataHandler
In This Article
Back to top Generated by DocFX