50 references to FormViewMode
System.Web (50)
UI\WebControls\FormView.cs (47)
83
private
FormViewMode
_defaultMode =
FormViewMode
.ReadOnly;
84
private
FormViewMode
_mode;
309
public
FormViewMode
CurrentMode {
322
if (CurrentMode ==
FormViewMode
.Insert) {
345
if (CurrentMode ==
FormViewMode
.Insert) {
415
DefaultValue(
FormViewMode
.ReadOnly),
418
public virtual
FormViewMode
DefaultMode {
423
if (value <
FormViewMode
.ReadOnly || value >
FormViewMode
.Insert) {
864
private
FormViewMode
Mode {
874
if (value <
FormViewMode
.ReadOnly || value >
FormViewMode
.Insert) {
932
if (Mode ==
FormViewMode
.Insert && !DesignMode) {
1298
public void ChangeMode(
FormViewMode
newMode) {
1314
FormViewMode
mode = Mode;
1317
if (DesignMode && mode ==
FormViewMode
.Insert) {
1329
if (mode !=
FormViewMode
.Insert) {
1359
if (mode !=
FormViewMode
.Insert) {
1377
if (mode !=
FormViewMode
.Insert) {
1405
if (!moveNextSucceeded && mode !=
FormViewMode
.Insert) {
1446
if (allowPaging && PagerSettings.Visible && _pagerSettings.IsPagerOnTop && mode !=
FormViewMode
.Insert && !singlePage) {
1474
if (allowPaging && PagerSettings.Visible && _pagerSettings.IsPagerOnBottom && mode !=
FormViewMode
.Insert && !singlePage) {
1508
case
FormViewMode
.Edit:
1511
case
FormViewMode
.Insert:
1518
case
FormViewMode
.ReadOnly:
1532
FormViewMode
mode = Mode;
1535
if (mode ==
FormViewMode
.Edit)
1537
else if (mode ==
FormViewMode
.Insert)
1854
if (RequiresDataBinding && Mode ==
FormViewMode
.Insert) {
1886
if (Mode ==
FormViewMode
.ReadOnly && ItemTemplate != null) {
1888
} else if ((Mode ==
FormViewMode
.Edit || (Mode ==
FormViewMode
.Insert && InsertItemTemplate == null)) && EditItemTemplate != null) {
1890
} else if (Mode ==
FormViewMode
.Insert && InsertItemTemplate != null) {
2004
FormViewModeEventArgs e = new FormViewModeEventArgs(
FormViewMode
.Edit, false);
2127
if (Mode !=
FormViewMode
.Insert) {
2193
FormViewModeEventArgs e = new FormViewModeEventArgs(
FormViewMode
.Insert, false);
2246
if (Mode !=
FormViewMode
.Edit) {
2450
_defaultMode =
FormViewMode
.ReadOnly;
2462
_defaultMode = (
FormViewMode
)state[2];
2468
Mode = (
FormViewMode
)state[3];
2758
if (IsDataBindingAutomatic && Mode ==
FormViewMode
.Edit && IsViewStateEnabled) {
2895
_defaultMode !=
FormViewMode
.ReadOnly ||
2910
if (_defaultMode !=
FormViewMode
.ReadOnly) {
3074
case
FormViewMode
.Edit:
3076
case
FormViewMode
.Insert:
3078
case
FormViewMode
.ReadOnly:
UI\WebControls\FormViewModeEventArgs.cs (3)
17
private
FormViewMode
_mode;
24
public FormViewModeEventArgs(
FormViewMode
mode, bool cancelingEdit) : base(false) {
44
public
FormViewMode
NewMode {