18 references to GetColumnCount
System.Windows.Forms (18)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (10)
4564
if (displayWidth <= 0 || this.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) == 0)
6440
if (!this.RowHeadersVisible && this.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) == 0)
7310
this.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) == 0 /*firstCell*/,
7327
this.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) == 0 /*lastCell*/,
7415
this.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) == 0 /*firstCell*/,
7497
if (this.Columns.
GetColumnCount
(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) == 0)
7777
selectedVisibleCellExists = selectedVisibleRowExists && this.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) != 0;
7781
selectedVisibleColumnExists = this.Columns.
GetColumnCount
(DataGridViewElementStates.Visible | DataGridViewElementStates.Selected) != 0;
10336
int totalVisibleColCount = this.Columns.
GetColumnCount
(DataGridViewElementStates.Visible);
15779
this.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) == 1 /*forceCurrentCellSelection*/);
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
2195
int result = this.owner.DataGridView.Columns.
GetColumnCount
(DataGridViewElementStates.Visible);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
1348
if (this.Owner.OwningRow != null && this.Owner.DataGridView.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) > 0)
1475
if (this.Owner.DataGridView.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) > 0)
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (3)
620
if (this.Owner.DataGridView.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) == 0)
643
if (this.Owner.DataGridView.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) > 0 &&
688
if (dataGridView.Columns.
GetColumnCount
(DataGridViewElementStates.Visible) == 0)
winforms\Managed\System\WinForms\DataGridViewTopRowAccessibleObject.cs (2)
158
if (index < this.owner.Columns.
GetColumnCount
(DataGridViewElementStates.Visible))
176
int result = this.owner.Columns.
GetColumnCount
(DataGridViewElementStates.Visible);