78 references to DataBoundControlMode
System.Web (11)
UI\WebControls\DetailsView.cs (5)
3643
DataBoundControlMode
IDataBoundItemControl.Mode {
3647
return
DataBoundControlMode
.Edit;
3649
return
DataBoundControlMode
.Insert;
3651
return
DataBoundControlMode
.ReadOnly;
3654
return
DataBoundControlMode
.ReadOnly;
UI\WebControls\FormView.cs (5)
3071
DataBoundControlMode
IDataBoundItemControl.Mode {
3075
return
DataBoundControlMode
.Edit;
3077
return
DataBoundControlMode
.Insert;
3079
return
DataBoundControlMode
.ReadOnly;
3082
return
DataBoundControlMode
.ReadOnly;
UI\WebControls\IDataBoundItemControl.cs (1)
10
DataBoundControlMode
Mode {
System.Web.DynamicData (67)
DynamicData\DefaultAutoFieldGenerator.cs (4)
24
DataBoundControlMode
mode = GetMode(control);
36
protected virtual DynamicField CreateField(MetaColumn column, ContainerType containerType,
DataBoundControlMode
mode) {
58
internal static
DataBoundControlMode
GetMode(Control control) {
65
return
DataBoundControlMode
.ReadOnly;
DynamicData\DynamicControl.cs (5)
41
public DynamicControl(
DataBoundControlMode
mode) {
153
DefaultValue(
DataBoundControlMode
.ReadOnly),
157
public
DataBoundControlMode
Mode {
160
return ((o == null) ?
DataBoundControlMode
.ReadOnly : (
DataBoundControlMode
)o);
DynamicData\DynamicEntity.cs (4)
16
DefaultValue(
DataBoundControlMode
.ReadOnly),
20
public
DataBoundControlMode
Mode {
23
return value != null ? (
DataBoundControlMode
)value :
DataBoundControlMode
.ReadOnly;
DynamicData\DynamicField.cs (5)
251
private
DataBoundControlMode
DetermineControlMode(DataControlRowState rowState) {
253
return
DataBoundControlMode
.ReadOnly;
260
return
DataBoundControlMode
.Edit;
262
return
DataBoundControlMode
.Insert;
264
return
DataBoundControlMode
.ReadOnly;
DynamicData\EntityTemplateFactory.cs (12)
43
public virtual EntityTemplateUserControl CreateEntityTemplate(MetaTable table,
DataBoundControlMode
mode, string uiHint) {
56
private string GetEntityTemplateVirtualPathWithCaching(MetaTable table,
DataBoundControlMode
mode, string uiHint) {
64
public virtual string GetEntityTemplateVirtualPath(MetaTable table,
DataBoundControlMode
mode, string uiHint) {
82
return GetVirtualPathFallback(table, mode, uiHint,
DataBoundControlMode
.Edit) ??
83
GetVirtualPathFallback(table,
DataBoundControlMode
.ReadOnly, uiHint,
DataBoundControlMode
.ReadOnly);
86
private string GetVirtualPathFallback(MetaTable table,
DataBoundControlMode
mode, string uiHint,
DataBoundControlMode
minModeToFallBack) {
96
for (
var
currentMode = mode; currentMode >= minModeToFallBack; currentMode--) {
106
private string GetVirtualPathForMode(string candidateName,
DataBoundControlMode
mode) {
115
public virtual string BuildEntityTemplateVirtualPath(string templateName,
DataBoundControlMode
mode) {
120
string modeString = mode ==
DataBoundControlMode
.ReadOnly ? String.Empty : "_" + mode.ToString();
DynamicData\EntityTemplateUserControl.cs (1)
17
public
DataBoundControlMode
Mode { get; internal set; }
DynamicData\FieldTemplateFactory.cs (23)
105
internal string GetFieldTemplateVirtualPathWithCaching(MetaColumn column,
DataBoundControlMode
mode, string uiHint) {
121
public virtual string GetFieldTemplateVirtualPath(MetaColumn column,
DataBoundControlMode
mode, string uiHint) {
154
public virtual
DataBoundControlMode
PreprocessMode(MetaColumn column,
DataBoundControlMode
mode) {
161
if (column.IsPrimaryKey && mode ==
DataBoundControlMode
.Edit) {
162
mode =
DataBoundControlMode
.ReadOnly;
167
mode =
DataBoundControlMode
.ReadOnly;
172
if (mode ==
DataBoundControlMode
.Insert && column.AllowInitialValue) {
175
mode =
DataBoundControlMode
.ReadOnly;
180
if (mode ==
DataBoundControlMode
.Insert && !column.AllowInitialValue) {
181
mode =
DataBoundControlMode
.ReadOnly;
187
if (mode ==
DataBoundControlMode
.Edit && ((MetaForeignKeyColumn)column).IsPrimaryKeyInThisTable) {
188
mode =
DataBoundControlMode
.ReadOnly;
195
private string GetVirtualPathWithModeFallback(string templateName, MetaColumn column,
DataBoundControlMode
mode) {
199
for (
var
currentMode = mode; currentMode >= 0; currentMode--) {
209
private string GetVirtualPathForMode(string templateName, MetaColumn column,
DataBoundControlMode
mode) {
222
private string GetVirtualPathForTypeWithFallback(Type fieldType, MetaColumn column,
DataBoundControlMode
mode) {
265
private string GetVirtualPathIfExists(string templateName, MetaColumn column,
DataBoundControlMode
mode) {
286
public virtual string BuildVirtualPath(string templateName, MetaColumn column,
DataBoundControlMode
mode) {
293
case
DataBoundControlMode
.ReadOnly:
296
case
DataBoundControlMode
.Edit:
299
case
DataBoundControlMode
.Insert:
321
public virtual IFieldTemplate CreateFieldTemplate(MetaColumn column,
DataBoundControlMode
mode, string uiHint) {
DynamicData\FieldTemplateUserControl.cs (4)
112
public
DataBoundControlMode
Mode {
146
if (Mode ==
DataBoundControlMode
.Insert && DefaultValueMapping != null && DefaultValueMapping.Contains(Column)) {
193
if (Mode ==
DataBoundControlMode
.Insert) {
236
Debug.Assert(Mode ==
DataBoundControlMode
.Insert);
DynamicData\IFieldTemplateFactory.cs (1)
22
IFieldTemplate CreateFieldTemplate(MetaColumn column,
DataBoundControlMode
mode, string uiHint);
DynamicData\IFieldTemplateHost.cs (1)
17
DataBoundControlMode
Mode { get; }
DynamicData\IMetaTable.cs (1)
46
IEnumerable<IMetaColumn> GetScaffoldColumns(
DataBoundControlMode
mode, ContainerType containerType);
DynamicData\MetaTable.cs (4)
760
public virtual IEnumerable<MetaColumn> GetScaffoldColumns(
DataBoundControlMode
mode, ContainerType containerType) {
830
private bool IsScaffoldColumn(IMetaColumn column,
DataBoundControlMode
mode, ContainerType containerType) {
836
if (mode ==
DataBoundControlMode
.Insert) {
1056
IEnumerable<IMetaColumn> IMetaTable.GetScaffoldColumns(
DataBoundControlMode
mode, ContainerType containerType) {
DynamicData\SimpleFieldTemplateFactory.cs (2)
39
public override IFieldTemplate CreateFieldTemplate(MetaColumn column,
DataBoundControlMode
mode, string uiHint) {
42
bool readOnly = (mode ==
DataBoundControlMode
.ReadOnly);