1 write to dataGrid
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
86
this.
dataGrid
= instance;
79 references to dataGrid
System.Data (79)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (79)
92
this.
dataGrid
.Style = (Style)this.FindResource("defaultDataGridStyle");
94
this.
dataGrid
.LoadingRow += OnDataGridRowLoading;
96
DataGridHelper.SetDGHelper(this.
dataGrid
, this);
97
this.
dataGrid
.MouseDown += OnDataGridMouseDown;
98
this.
dataGrid
.Sorting += OnDataGridSorting;
99
this.
dataGrid
.CellEditEnding += OnDataGridCellEditEnding;
120
if ((!e.Cancel) && (!GetIsCommitInProgress(this.
dataGrid
)))
122
SetIsCommitInProgress(this.
dataGrid
, true);
127
commitSucceeded = this.
dataGrid
.CommitEdit(DataGridEditingUnit.Row, true);
138
this.
dataGrid
.CancelEdit();
141
SetIsCommitInProgress(this.
dataGrid
, false);
148
foreach (DataGridColumn column in this.
dataGrid
.Columns)
165
foreach (SortDescription description in this.
dataGrid
.Items.SortDescriptions.Reverse())
169
this.
dataGrid
.Items.SortDescriptions.Remove(description);
171
else if (description.PropertyName == this.
dataGrid
.Columns[0].SortMemberPath)
177
this.
dataGrid
.Items.SortDescriptions.Add(new SortDescription(e.Column.SortMemberPath, direction));
179
if (e.Column != this.
dataGrid
.Columns[0] && !primaryColumnSorted)
181
this.
dataGrid
.Items.SortDescriptions.Add(new SortDescription(this.
dataGrid
.Columns[0].SortMemberPath, ListSortDirection.Ascending));
183
this.
dataGrid
.Items.Refresh();
199
if (
dataGrid
.CurrentCell.Column != null)
201
DataGridCellInfo currentCell =
dataGrid
.CurrentCell;
202
ObservableCollection<DataGridColumn> columns =
dataGrid
.Columns;
203
ItemCollection items =
dataGrid
.Items;
204
int currentColumnIndex = columns.IndexOf(
dataGrid
.ColumnFromDisplayIndex(currentCell.Column.DisplayIndex));
205
DataGridCell currentCellContainer = GetCell(
dataGrid
, items.IndexOf(currentCell.Item), currentColumnIndex);
234
IEditableCollectionView editableItems = (IEditableCollectionView)(this.
dataGrid
.Items);
244
this.
dataGrid
.CommitEdit(DataGridEditingUnit.Row, true);
248
this.
dataGrid
.CommitEdit(DataGridEditingUnit.Cell, true);
282
get { return this.
dataGrid
; }
287
get { return GetIsCommitInProgress(this.
dataGrid
); }
311
bool containsBinding = this.
dataGrid
.CommandBindings
318
this.
dataGrid
.CommandBindings.Add(cb);
384
return this.
dataGrid
.SelectedItem as T;
389
return (T)this.
dataGrid
.ItemsSource;
402
int columnIndex = this.
dataGrid
.Columns.IndexOf(column);
407
ICollectionView items = CollectionViewSource.GetDefaultView(this.
dataGrid
.ItemsSource);
411
this.
dataGrid
.SelectedItem = null;
416
this.
dataGrid
.SelectedItem = value;
418
DataGridCell cell = DataGridHelper.GetCell(this.
dataGrid
, items.CurrentPosition, columnIndex);
423
dataGrid
.BeginEdit();
435
var column = this.
dataGrid
.Columns[0];
437
while (null != column && column.Visibility == Visibility.Hidden && this.
dataGrid
.Columns.Count > index)
439
column = this.
dataGrid
.Columns[index];
488
object added = this.NotifyNewRowAddedCallback(this.
dataGrid
, btn.CommandParameter);
511
if (cmd.CanExecute(btn.CommandParameter, this.
dataGrid
))
513
cmd.Execute(btn.CommandParameter, this.
dataGrid
);
525
this.
dataGrid
.SelectedItem = null;
530
if (!GetIsCommitInProgress(this.
dataGrid
))
532
SetIsCommitInProgress(this.
dataGrid
, true);
534
this.
dataGrid
.CommitEdit(DataGridEditingUnit.Row, true);
536
SetIsCommitInProgress(this.
dataGrid
, false);
553
EditingControlBehavior behavior = Activator.CreateInstance(editorBehaviorType, this.
dataGrid
) as EditingControlBehavior;
682
if (null != cell && !cell.IsEditing && !cell.IsReadOnly && null != this.
dataGrid
.SelectedItem)
686
if (this.
dataGrid
.SelectionUnit != DataGridSelectionUnit.FullRow)
699
this.
dataGrid
.SelectedItem = row;
710
if (
dataGrid
.SelectionUnit == DataGridSelectionUnit.FullRow)
712
dataGrid
.SelectedItems.Clear();
716
dataGrid
.SelectedItems.Add(
dataGrid
.ItemContainerGenerator.ItemFromContainer(row));
721
dataGrid
.SelectedCells.Clear();
722
dataGrid
.SelectedCells.Add(new DataGridCellInfo(cell));
724
this.
dataGrid
.BeginEdit();
732
ICollectionView view = CollectionViewSource.GetDefaultView(this.
dataGrid
.ItemsSource);
733
if (null != this.
dataGrid
.SelectedItem && this.
dataGrid
.CurrentCell.IsValid && view.MoveCurrentTo(this.
dataGrid
.SelectedItem))
736
int columnIndex = this.
dataGrid
.Columns.IndexOf(this.
dataGrid
.CurrentCell.Column);
737
var cell = DataGridHelper.GetCell(this.
dataGrid
, rowIndex, columnIndex);
746
this.
dataGrid
.Focus();
783
ICollectionView view = CollectionViewSource.GetDefaultView(this.
dataGrid
.ItemsSource);
793
var dynamicColumnsIndexes = this.
dataGrid
.Columns
797
.Select<DataGridColumn, int>(p => this.
dataGrid
.Columns.IndexOf(p));
803
var cell = DataGridHelper.GetCell(this.
dataGrid
, rowIndex, columnIndex);
822
Style baseStyle = this.
dataGrid
.CellStyle;
842
this.
dataGrid
.CellStyle = style;
848
Style baseStyle = this.
dataGrid
.RowStyle;
883
this.
dataGrid
.RowStyle = style;