//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.Web.UI.WebControls;
///
/// Creates a special cell that is contained within a DataControlField.
///
public class DataControlFieldCell : TableCell {
DataControlField _containingField;
public DataControlFieldCell(DataControlField containingField) {
_containingField = containingField;
}
protected DataControlFieldCell(HtmlTextWriterTag tagKey, DataControlField containingField) : base(tagKey) {
_containingField = containingField;
}
public DataControlField ContainingField {
get {
return _containingField;
}
}
///
/// gets the value of ValidateRequestMode from it's .
/// The ValidateRequestMode property should not be set directly on .
///
public override ValidateRequestMode ValidateRequestMode {
get {
return _containingField.ValidateRequestMode;
}
set {
throw new InvalidOperationException(SR.GetString(SR.DataControlFieldCell_ShouldNotSetValidateRequestMode));
}
}
}
}