2 types derived from DataGridViewBand
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
17
public class DataGridViewColumn :
DataGridViewBand
, IComponent
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
13
public partial class DataGridViewRow :
DataGridViewBand
29 references to DataGridViewBand
System.Windows.Forms (26)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (18)
319
if (preferredThickness >
DataGridViewBand
.MaxBandThickness)
321
preferredThickness =
DataGridViewBand
.MaxBandThickness;
410
if (preferredThickness >
DataGridViewBand
.MaxBandThickness)
412
preferredThickness =
DataGridViewBand
.MaxBandThickness;
1894
if (preferredColumnWidth >
DataGridViewBand
.MaxBandThickness)
1896
preferredColumnWidth =
DataGridViewBand
.MaxBandThickness;
2302
if (preferredThickness >
DataGridViewBand
.MaxBandThickness)
2304
preferredThickness =
DataGridViewBand
.MaxBandThickness;
2543
int overflowWidth = leftEdge - _mouseBarOffset - clip.Left -
DataGridViewBand
.MaxBandThickness + 1;
2554
int overflowWidth = clip.Right + _mouseBarOffset - leftEdge -
DataGridViewBand
.MaxBandThickness;
6126
Debug.Assert(proposed <=
DataGridViewBand
.MaxBandThickness);
6425
int maxDisplayedRows = rectScreen.Height /
DataGridViewBand
.MinBandThickness;
11354
internal void OnBandContextMenuStripChanged(
DataGridViewBand
dataGridViewBand)
11368
internal void OnBandDefaultCellStyleChanged(
DataGridViewBand
dataGridViewBand)
11382
internal void OnBandDividerThicknessChanged(
DataGridViewBand
dataGridViewBand)
11396
internal void OnBandHeaderCellChanged(
DataGridViewBand
dataGridViewBand)
11410
internal void OnBandMinimumThicknessChanged(
DataGridViewBand
dataGridViewBand)
11424
internal void OnBandThicknessChanged(
DataGridViewBand
dataGridViewBand)
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (4)
28
/// Initializes a new instance of the <see cref="
DataGridViewBand
"/> class.
714
DataGridViewBand
band = (
DataGridViewBand
)Activator.CreateInstance(GetType())!;
719
private protected void CloneInternal(
DataGridViewBand
dataGridViewBand)
System\Windows\Forms\Controls\DataGridView\DataGridViewElement.cs (1)
22
if (GetType() == typeof(
DataGridViewBand
) || GetType() == typeof(DataGridViewColumn) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeightInfoNeededEventArgs.cs (3)
30
ArgumentOutOfRangeException.ThrowIfGreaterThan(value,
DataGridViewBand
.MaxBandThickness);
41
if (value <
DataGridViewBand
.MinBandThickness)
43
throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumHeightSmallerThanOne,
DataGridViewBand
.MinBandThickness));
System.Windows.Forms.Tests (3)
System\Windows\Forms\DataGridViewElementTests.cs (3)
38
type == typeof(
DataGridViewBand
) || type == typeof(DataGridViewCell) ||
39
type.IsSubclassOf(typeof(
DataGridViewBand
)) || type.IsSubclassOf(typeof(DataGridViewCell))))
368
Assert.True(type == typeof(
DataGridViewBand
) || type == typeof(DataGridViewColumn) ||