1 write to edit
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (1)
90
edit
= new DataGridTextBox();
55 references to edit
System.Windows.Forms (55)
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (55)
91
edit
.BorderStyle = BorderStyle.None;
92
edit
.Multiline = true;
93
edit
.AcceptsReturn = true;
94
edit
.Visible = false;
120
return
edit
;
126
if (
edit
.IsInEditOrNavigateMode)
144
if (
edit
.ParentInternal != null) {
145
edit
.ParentInternal.Controls.Remove(
edit
);
148
value.Controls.Add(
edit
);
152
edit
.SetDataGrid(value);
267
edit
.Bounds = Rectangle.Empty;
281
bool wasFocused =
edit
.Focused;
282
edit
.Visible = false;
300
Debug.Assert(!
edit
.Focused, "the edit control just conceeded focus to the dataGrid");
310
edit
.Text = GetText(GetColumnValueAtRow(source, rowNum));
311
if (!
edit
.ReadOnly && displayText != null)
312
edit
.Text = displayText;
322
edit
.IsInEditOrNavigateMode = true;
394
if (!
edit
.Visible)
399
if (!
edit
.IsInEditOrNavigateMode)
402
edit
.Text = NullText;
404
edit
.IsInEditOrNavigateMode = false;
407
this.DataGridTableStyle.DataGrid.ColumnStartedEditing(
edit
.Bounds);
419
edit
.Bounds = Rectangle.Empty;
421
if (
edit
.IsInEditOrNavigateMode)
425
object value =
edit
.Text;
428
edit
.Text = NullText;
432
value = (object) parseMethod.Invoke(null, new object[] {
edit
.Text, this.FormatInfo});
434
edit
.Text = ((IFormattable)value).ToString(format, formatInfo);
436
edit
.Text = value.ToString();
438
value = typeConverter.ConvertFromString(
edit
.Text);
439
edit
.Text = typeConverter.ConvertToString(value);
473
edit
.ReadOnly = readOnly || ReadOnly || this.DataGridTableStyle.ReadOnly;
475
edit
.Text = GetText(GetColumnValueAtRow(source, rowNum));
476
if (!
edit
.ReadOnly && displayText != null) {
480
this.
edit
.IsInEditOrNavigateMode = false;
481
edit
.Text = displayText;
489
edit
.Bounds = bounds;
491
edit
.Visible = true;
493
edit
.TextAlign = this.Alignment;
496
edit
.Bounds = Rectangle.Empty;
501
edit
.RightToLeft = this.DataGridTableStyle.DataGrid.RightToLeft;
503
edit
.FocusInternal();
507
if (!
edit
.ReadOnly) {
508
oldValue =
edit
.Text;
515
edit
.SelectAll();
517
int end =
edit
.Text.Length;
518
edit
.Select(end, 0);
521
if (
edit
.Visible)
622
Debug.Assert(!
edit
.IsInEditOrNavigateMode, "Must be editing to rollback changes...");
623
edit
.Text = oldValue;
628
if (
edit
.ParentInternal != null) {
629
edit
.ParentInternal.Controls.Remove(
edit
);