Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / DataControlFieldHeaderCell.cs / 1 / DataControlFieldHeaderCell.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Globalization; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class DataControlFieldHeaderCell : DataControlFieldCell { public DataControlFieldHeaderCell(DataControlField containingField) : base(HtmlTextWriterTag.Th, containingField) { } ///Creates a special header cell that is contained within a DataControlField. ////// public virtual string AbbreviatedText { get { object x = ViewState["AbbrText"]; return((x == null) ? String.Empty : (string)x); } set { ViewState["AbbrText"] = value; } } ////// Sets the abbreviated text for a header cell. The abbreviated text /// is rendered with the HTML ABBR attribute. The ABBR attribute is important /// for screen readers since it allows them to read a shortened version of a header for each cell in the table. /// ////// public virtual TableHeaderScope Scope { get { object x = ViewState["Scope"]; return((x == null) ? TableHeaderScope.NotSet : (TableHeaderScope)x); } set { ViewState["Scope"] = value; } } ////// Represents the cells that the header applies to. Renders the HTML scope attribute. Possible values are from the TableHeaderScope enumeration: Column and Row. /// ////// protected override void AddAttributesToRender(HtmlTextWriter writer) { base.AddAttributesToRender(writer); TableHeaderScope scope = Scope; if (scope != TableHeaderScope.NotSet) { if (scope == TableHeaderScope.Column) { writer.AddAttribute(HtmlTextWriterAttribute.Scope, "col"); } else { writer.AddAttribute(HtmlTextWriterAttribute.Scope, "row"); } } String abbr = AbbreviatedText; if (!String.IsNullOrEmpty(abbr)) { writer.AddAttribute(HtmlTextWriterAttribute.Abbr, abbr); } } } }Adds header cell attributes to the list of attributes to render. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UnsafeNativeMethods.cs
- OptimalBreakSession.cs
- ObjectConverter.cs
- Hex.cs
- GridLengthConverter.cs
- CancellableEnumerable.cs
- SqlDependency.cs
- ScaleTransform.cs
- FlowSwitchLink.cs
- WebPartConnectionCollection.cs
- AbsoluteQuery.cs
- SessionIDManager.cs
- CompoundFileDeflateTransform.cs
- AnnouncementInnerClientCD1.cs
- DuplicateWaitObjectException.cs
- ArcSegment.cs
- StringFormat.cs
- XmlSchemaGroup.cs
- CursorInteropHelper.cs
- ColorContextHelper.cs
- ISAPIApplicationHost.cs
- SessionSwitchEventArgs.cs
- Monitor.cs
- DuplicateMessageDetector.cs
- QilNode.cs
- KernelTypeValidation.cs
- XmlReader.cs
- DesignerVerb.cs
- ISAPIRuntime.cs
- Wildcard.cs
- DataTablePropertyDescriptor.cs
- Effect.cs
- EastAsianLunisolarCalendar.cs
- TdsParserStaticMethods.cs
- SiteMembershipCondition.cs
- InternalsVisibleToAttribute.cs
- XslCompiledTransform.cs
- UnsafeNativeMethods.cs
- Geometry3D.cs
- RemoteTokenFactory.cs
- SmtpDigestAuthenticationModule.cs
- CheckBoxStandardAdapter.cs
- PreviewPrintController.cs
- GlyphRun.cs
- FixedPageStructure.cs
- PreProcessor.cs
- StringAttributeCollection.cs
- SqlConnection.cs
- CompilerParameters.cs
- TextParagraphCache.cs
- CommandBindingCollection.cs
- QilLiteral.cs
- SpeechEvent.cs
- TokenBasedSetEnumerator.cs
- CultureInfoConverter.cs
- OutOfProcStateClientManager.cs
- HttpException.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- DomNameTable.cs
- ReflectionServiceProvider.cs
- WebServiceReceiveDesigner.cs
- DbDataReader.cs
- PrintDialog.cs
- FileEnumerator.cs
- Rect3D.cs
- CustomErrorsSectionWrapper.cs
- MutexSecurity.cs
- DocumentStream.cs
- Tuple.cs
- DBParameter.cs
- ThicknessAnimation.cs
- Font.cs
- CaretElement.cs
- ReflectionHelper.cs
- SweepDirectionValidation.cs
- PrintPreviewControl.cs
- ShellProvider.cs
- DSASignatureDeformatter.cs
- WebControl.cs
- InstanceOwnerQueryResult.cs
- ObjectSecurity.cs
- SqlBulkCopy.cs
- AtomPub10CategoriesDocumentFormatter.cs
- SeverityFilter.cs
- TextRangeProviderWrapper.cs
- PointConverter.cs
- TextRangeAdaptor.cs
- AuthenticateEventArgs.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- DefaultSettingsSection.cs
- AuthorizationSection.cs
- GradientStop.cs
- XamlStyleSerializer.cs
- ExceptionDetail.cs
- XMLDiffLoader.cs
- UInt32Storage.cs
- EdmItemCollection.cs
- BinHexDecoder.cs
- SymbolTable.cs
- TransactionFilter.cs