1 write to myGridTable
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGrid.cs (1)
8792
myGridTable
= newTable;
167 references to myGridTable
System.Windows.Forms (167)
winforms\Managed\System\WinForms\DataGrid.cs (158)
684
if (
myGridTable
.IsDefault)
687
this.
myGridTable
.RowHeaderWidth += errorRowBitmapWidth;
690
if (
myGridTable
.IsDefault)
693
this.
myGridTable
.RowHeaderWidth -= errorRowBitmapWidth;
701
return !(listManager == null ||
myGridTable
== null);
910
if (DataGridRowsLength == 0 || this.
myGridTable
.GridColumnStyles == null || this.
myGridTable
.GridColumnStyles.Count == 0)
929
int columnCount =
myGridTable
.GridColumnStyles.Count;
1034
localGridRows[DataGridRowsLength - 1] = new DataGridAddNewRow(this, this.
myGridTable
, DataGridRowsLength-1);
1140
currentCellAccIndex += this.
myGridTable
.GridColumnStyles.Count; // ColumnHeaderAccessibleObject
1146
currentCellAccIndex += (this.currentRow * this.
myGridTable
.GridColumnStyles.Count) + this.currentCol;
1352
DataGridTableStyle dgt = this.
myGridTable
;
1688
if (this.
myGridTable
.IsDefault)
1691
this.
myGridTable
.RowHeaderWidth = Math.Max(this.minRowHeaderWidth, this.RowHeaderWidth);
1864
this.
myGridTable
.ResetRelationsUI();
2987
return Math.Min(numVisibleCols, this.
myGridTable
== null ? 0 : this.
myGridTable
.GridColumnStyles.Count);
3018
if (columnIndex < 0 || columnIndex >=
myGridTable
.GridColumnStyles.Count)
3021
DataGridColumnStyle column =
myGridTable
.GridColumnStyles[columnIndex];
3028
if (columnIndex < 0 || columnIndex >=
myGridTable
.GridColumnStyles.Count)
3033
DataGridColumnStyle column =
myGridTable
.GridColumnStyles[columnIndex];
3129
gridRows[currentRowCount - 1] = new DataGridRelationshipRow(this, this.
myGridTable
, currentRowCount - 1);
3152
this.
myGridTable
.ResetRelationsUI();
3189
layout.RowHeadersVisible = this.
myGridTable
== null ? false : this.
myGridTable
.RowHeadersVisible;
3194
layout.ColumnHeadersVisible = this.
myGridTable
== null ? false : this.
myGridTable
.ColumnHeadersVisible;
3206
if (!this.
myGridTable
.AllowSorting && this.listManager != null) {
3283
Debug.Assert(this.
myGridTable
.IsDefault, "if the table is not default, then it had a name. how can one add another table to the collection w/ the same name and not throw an exception");
3289
if (this.
myGridTable
.MappingName.Equals(tableStyle.MappingName)) {
3290
Debug.Assert(this.
myGridTable
.IsDefault, "if the table is not default, then it had a name. how can one add another table to the collection w/ the same name and not throw an exception");
3302
if (!this.
myGridTable
.IsDefault) {
3522
GridColumnStylesCollection columns = this.
myGridTable
.GridColumnStyles;
3618
GridColumnStylesCollection cols = this.
myGridTable
.GridColumnStyles;
3626
GridColumnStylesCollection cols = this.
myGridTable
.GridColumnStyles;
3962
localGridRows[DataGridRowsLength - 1] = new DataGridAddNewRow(this, this.
myGridTable
, DataGridRowsLength-1);
3999
GridColumnStylesCollection coll = this.
myGridTable
.GridColumnStyles;
4055
trackColumnHeader = this.
myGridTable
.GridColumnStyles[location.col].PropertyDescriptor;
4165
if (this.
myGridTable
.GridColumnStyles[location.col].MouseDown(location.row, e.X, e.Y))
4320
if (listManager == null ||
myGridTable
== null)
4341
PropertyDescriptor prop = this.
myGridTable
.GridColumnStyles[ci.col].PropertyDescriptor;
4369
if (listManager == null ||
myGridTable
== null)
4674
if (this.DataSource == null || this.
myGridTable
== null)
4682
if ((col = this.
myGridTable
.GridColumnStyles.IndexOf(gridColumn)) < 0)
4726
if (checkHierarchy && this.listManager != null && this.
myGridTable
!= null) {
4727
if (
myGridTable
== null)
4731
for (int j = 0; j <
myGridTable
.GridColumnStyles.Count; j++) {
4732
DataGridColumnStyle gridColumn =
myGridTable
.GridColumnStyles[j];
4763
DataGridColumnStyle column =
myGridTable
.GridColumnStyles[col];
4767
if (this.
myGridTable
.IsDefault)
4770
headerFont = this.
myGridTable
.HeaderFont;
4787
for (int i = this.lastTotallyVisibleCol + 1; i < this.
myGridTable
.GridColumnStyles.Count; i ++) {
4788
if (this.
myGridTable
.GridColumnStyles[i].PropertyDescriptor != null) {
4807
int colCount = this.
myGridTable
.GridColumnStyles.Count;
4809
GridColumnStylesCollection cols = this.
myGridTable
.GridColumnStyles;
4885
Debug.Assert(
myGridTable
!= null, "Column resizing operations can't be called when myGridTable == null.");
4921
Debug.Assert(
myGridTable
!= null, "Column resizing operations can't be called when myGridTable == null.");
4937
DataGridColumnStyle column =
myGridTable
.GridColumnStyles[trackColumn];
4946
for (int i = this.lastTotallyVisibleCol + 1; i < this.
myGridTable
.GridColumnStyles.Count; i ++) {
4947
if (this.
myGridTable
.GridColumnStyles[i].PropertyDescriptor != null) {
4957
int colCount = this.
myGridTable
.GridColumnStyles.Count;
4959
GridColumnStylesCollection cols = this.
myGridTable
.GridColumnStyles;
5054
GridColumnStylesCollection columns =
myGridTable
.GridColumnStyles;
5096
Debug.Assert(
myGridTable
!= null, "Row resizing operations can't be called when myGridTable == null.");
5127
Debug.Assert(
myGridTable
!= null, "Row resizing operations can't be called when myGridTable == null.");
5171
if (this.
myGridTable
.IsDefault)
5174
allowSorting =
myGridTable
.AllowSorting;
5397
bool newRowHeadersVisible = this.
myGridTable
.IsDefault ? this.RowHeadersVisible : this.
myGridTable
.RowHeadersVisible;
5398
int newRowHeaderWidth = this.
myGridTable
.IsDefault ? this.RowHeaderWidth : this.
myGridTable
.RowHeaderWidth;
5400
if (this.
myGridTable
!= null && newRowHeadersVisible) {
5497
if (this.
myGridTable
!= null && this.
myGridTable
.RelationsList.Count != 0)
5510
GridColumnStylesCollection columns =
myGridTable
.GridColumnStyles;
5594
if (
myGridTable
!= null &&
myGridTable
.GridColumnStyles != null &&
myGridTable
.GridColumnStyles.Count != 0) {
5595
GridColumnStylesCollection columns =
myGridTable
.GridColumnStyles;
5912
if (this.
myGridTable
.GridColumnStyles.Count == 0)
5916
editColumn =
myGridTable
.GridColumnStyles[currentCol];
5946
myGridTable
.ReadOnly || this.ReadOnly || !policy.AllowEdit,
6056
newDataGridRows[currentRowCount] = new DataGridAddNewRow(this, this.
myGridTable
, currentRowCount);
6100
return
myGridTable
== null ? null :
myGridTable
.CreateGridColumn(prop, isDefault);
6109
return
myGridTable
== null ? null :
myGridTable
.CreateGridColumn(prop);
6181
if (
myGridTable
== null && this.ListManager != null) {
6184
if (
myGridTable
!= null)
6185
myGridTable
.DataGrid = this;
6192
if (
myGridTable
== null)
6200
GridColumnStylesCollection columns =
myGridTable
.GridColumnStyles;
6222
Debug.Assert(
myGridTable
!= null, "GetColBeg can't be called when myGridTable == null.");
6225
GridColumnStylesCollection columns =
myGridTable
.GridColumnStyles;
6244
Debug.Assert(
myGridTable
.GridColumnStyles[col].PropertyDescriptor != null, "why would we need the coordinate of a column that is not visible?");
6245
int width =
myGridTable
.GridColumnStyles[col].Width;
6251
if (
myGridTable
!= null &&
myGridTable
.GridColumnStyles != null) {
6252
GridColumnStylesCollection columns =
myGridTable
.GridColumnStyles;
6540
if (
myGridTable
== null)
6543
GridColumnStylesCollection columns =
myGridTable
.GridColumnStyles;
6549
int preferredColumnWidth = this.
myGridTable
.IsDefault ? this.PreferredColumnWidth : this.
myGridTable
.PreferredColumnWidth;
6590
GridColumnStylesCollection gridColumns = this.
myGridTable
.GridColumnStyles;
6721
if (listManager == null ||
myGridTable
== null) {
6737
int nGridCols =
myGridTable
.GridColumnStyles.Count;
6905
newDataGridRows[newDataGridRowsLength - 1] = new DataGridAddNewRow(this, this.
myGridTable
, newDataGridRowsLength-1);
6916
if (dgTable != this.
myGridTable
) {
6918
localGridRows[i].DataGridTableStyle = this.
myGridTable
;
6926
if (this.
myGridTable
.GridColumnStyles.Count > 0 && this.
myGridTable
.GridColumnStyles[0].Width == -1) {
7098
if (table.Equals(this.
myGridTable
)) {
7103
if (!this.
myGridTable
.IsDefault) {
7108
PairTableStylesAndGridColumns(this.listManager, this.
myGridTable
, false);
7146
GridColumnStylesCollection gridColumns = this.
myGridTable
.GridColumnStyles;
7191
if (this.
myGridTable
.IsDefault)
7194
headerBrush = this.
myGridTable
.HeaderBackBrush;
7226
this.
myGridTable
.IsDefault ? this.HeaderFont : this.
myGridTable
.HeaderFont,
7227
this.
myGridTable
.IsDefault ? this.HeaderForeBrush : this.
myGridTable
.HeaderForeBrush,
7254
Pen pen2 = new Pen(this.
myGridTable
.BackBrush);
7299
if (this.
myGridTable
.IsDefault)
7302
br = this.
myGridTable
.HeaderForeBrush;
7338
if (this.
myGridTable
.IsDefault)
7341
g.FillRectangle(this.
myGridTable
.HeaderBackBrush, layout.TopLeftHeader);
7379
newDataGridRows[currentRowCount - selectedEntries] = new DataGridAddNewRow(this, this.
myGridTable
, currentRowCount - selectedEntries);
7402
int numCols =
myGridTable
.GridColumnStyles.Count - firstVisibleCol;
7516
GridColumnStylesCollection columns =
myGridTable
.GridColumnStyles;
7539
GridColumnStylesCollection columns =
myGridTable
.GridColumnStyles;
7659
if (listManager == null ||
myGridTable
== null)
7680
GridColumnStylesCollection cols = this.
myGridTable
.GridColumnStyles;
7988
int newCol = MoveLeftRight(this.
myGridTable
.GridColumnStyles, this.
myGridTable
.GridColumnStyles.Count, false);
7993
int newCol = MoveLeftRight(this.
myGridTable
.GridColumnStyles, currentCol, false);
8024
int newCol = MoveLeftRight(this.
myGridTable
.GridColumnStyles, this.currentCol, true);
8253
if (this.listManager == null ||
myGridTable
== null)
8256
int columnCount =
myGridTable
.GridColumnStyles.Count;
8303
GridColumnStylesCollection cols = this.
myGridTable
.GridColumnStyles;
8494
localGridRows[DataGridRowsLength-1] = new DataGridAddNewRow(this, this.
myGridTable
, DataGridRowsLength -1);
8509
if (this.
myGridTable
== null || this.
myGridTable
.IsDefault)
8512
headerFontHeight =
myGridTable
.HeaderFont.Height;
8646
GridColumnStylesCollection gridColumns =
myGridTable
.GridColumnStyles;
8653
if (this.
myGridTable
.IsDefault)
8779
if(this.
myGridTable
!= null) {
8781
UnWireTableStylePropChanged(
myGridTable
);
8783
if (
myGridTable
.IsDefault) {
8785
myGridTable
.GridColumnStyles.ResetPropertyDescriptors();
8788
myGridTable
.ResetRelationsList();
8794
WireTableStylePropChanged(
myGridTable
);
8814
PairTableStylesAndGridColumns(this.listManager, this.
myGridTable
, forceColumnCreation);
9056
return ((DataGrid)Owner).
myGridTable
.GridColumnStyles.Count;
9113
return dataGrid.
myGridTable
.GridColumnStyles[index].HeaderAccessibleObject;
9139
int colCount = dataGrid.
myGridTable
.GridColumnStyles.Count;
9144
if (currentRow < dataGrid.dataGridRows.Length && currentCol < dataGrid.
myGridTable
.GridColumnStyles.Count) {
9162
n += this.DataGrid.DataGridRows.Length * this.DataGrid.
myGridTable
.GridColumnStyles.Count;
9175
if (this.DataGrid.DataGridRows.Length == 0 || this.DataGrid.
myGridTable
.GridColumnStyles.Count == 0) {
winforms\Managed\System\WinForms\DataGridRow.cs (7)
702
if (column < grid.
myGridTable
.GridColumnStyles.Count) {
703
return grid.
myGridTable
.GridColumnStyles[column].PropertyDescriptor.Converter.ConvertToString(grid[row, column]);
711
if (column < grid.
myGridTable
.GridColumnStyles.Count) {
712
return grid.
myGridTable
.GridColumnStyles[column].PropertyDescriptor.Converter.ConvertFromString(value);
736
cells = new ArrayList(DataGrid.
myGridTable
.GridColumnStyles.Count + 2);
744
GridColumnStylesCollection cols = DataGrid.
myGridTable
.GridColumnStyles;
925
return DataGrid.
myGridTable
.GridColumnStyles[column].HeaderText;
winforms\Managed\System\WinForms\DataGridState.cs (2)
94
this.GridColumnStyles = new GridColumnStylesCollection(dataGrid.
myGridTable
);
97
foreach(DataGridColumnStyle style in dataGrid.
myGridTable
.GridColumnStyles) {