Base:
property
Visible
System.Windows.Forms.DataGridViewBand.Visible
136 writes to Visible
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
1258_owner.Rows[rowIndex].Visible = true;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
2333dataGridViewRow.Visible = value;
System.Windows.Forms.Tests (133)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (54)
583dataGridView.Rows[0].Visible = false; 638dataGridView.Rows[0].Visible = false; 657dataGridView.Rows[1].Visible = false; 676dataGridView.Rows[0].Visible = false; 677dataGridView.Rows[1].Visible = false; 695dataGridView.Rows[0].Visible = false; 713dataGridView.Rows[1].Visible = false; 731dataGridView.Rows[0].Visible = false; 732dataGridView.Rows[1].Visible = false; 751dataGridView.Rows[0].Visible = false; 772dataGridView.Rows[1].Visible = false; 793dataGridView.Rows[0].Visible = false; 794dataGridView.Rows[1].Visible = false; 814dataGridView.Rows[0].Visible = false; 837dataGridView.Rows[1].Visible = false; 860dataGridView.Rows[0].Visible = false; 861dataGridView.Rows[1].Visible = false; 884dataGridView.Rows[0].Visible = false; 904dataGridView.Rows[1].Visible = false; 924dataGridView.Rows[0].Visible = false; 925dataGridView.Rows[1].Visible = false; 945dataGridView.Rows[0].Visible = false; 965dataGridView.Rows[1].Visible = false; 985dataGridView.Rows[0].Visible = false; 986dataGridView.Rows[1].Visible = false; 1006dataGridView.Rows[0].Visible = false; 1026dataGridView.Rows[1].Visible = false; 1046dataGridView.Rows[0].Visible = false; 1047dataGridView.Rows[1].Visible = false; 1067dataGridView.Rows[0].Visible = false; 1087dataGridView.Rows[1].Visible = false; 1107dataGridView.Rows[0].Visible = false; 1108dataGridView.Rows[1].Visible = false; 1232dataGridView.Rows[0].Visible = false; 1251dataGridView.Rows[1].Visible = false; 1270dataGridView.Rows[2].Visible = false; 1289dataGridView.Rows[0].Visible = false; 1290dataGridView.Rows[1].Visible = false; 1291dataGridView.Rows[2].Visible = false; 1311dataGridView.Rows[0].Visible = false; 1342dataGridView.Rows[1].Visible = false; 1385dataGridView.Rows[2].Visible = false; 1568dataGridView.Rows[0].Visible = false; 1582dataGridView.Rows[0].Visible = false; 1583dataGridView.Rows[1].Visible = false; 1597dataGridView.Rows[0].Visible = false; 1598dataGridView.Rows[1].Visible = false; 1599dataGridView.Rows[2].Visible = false; 1626dataGridView.Rows[0].Visible = false; 1640dataGridView.Rows[0].Visible = false; 1641dataGridView.Rows[1].Visible = false; 1655dataGridView.Rows[0].Visible = false; 1656dataGridView.Rows[1].Visible = false; 1657dataGridView.Rows[2].Visible = false;
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (6)
254dataGridView.Rows[0].Visible = false; 273dataGridView.Rows[0].Visible = false; 274dataGridView.Rows[1].Visible = false; 795dataGridView.Rows[0].Visible = false; 815dataGridView.Rows[1].Visible = false; 835dataGridView.Rows[2].Visible = false;
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (27)
105dataGridView.Rows[0].Visible = false; 126dataGridView.Rows[1].Visible = false; 147dataGridView.Rows[2].Visible = false; 444dataGridView.Rows[0].Visible = false; 471dataGridView.Rows[1].Visible = false; 498dataGridView.Rows[2].Visible = false; 548dataGridView.Rows[0].Visible = false; 569dataGridView.Rows[1].Visible = false; 590dataGridView.Rows[2].Visible = false; 638dataGridView.Rows[0].Visible = false; 663dataGridView.Rows[1].Visible = false; 688dataGridView.Rows[2].Visible = false; 738dataGridView.Rows[0].Visible = false; 762dataGridView.Rows[1].Visible = false; 786dataGridView.Rows[2].Visible = false; 839dataGridView.Rows[0].Visible = false; 866dataGridView.Rows[1].Visible = false; 893dataGridView.Rows[2].Visible = false; 943dataGridView.Rows[0].Visible = false; 964dataGridView.Rows[1].Visible = false; 985dataGridView.Rows[2].Visible = false; 1033dataGridView.Rows[0].Visible = false; 1058dataGridView.Rows[1].Visible = false; 1083dataGridView.Rows[2].Visible = false; 1133dataGridView.Rows[0].Visible = false; 1157dataGridView.Rows[1].Visible = false; 1181dataGridView.Rows[2].Visible = false;
System\Windows\Forms\DataGridViewCellTests.cs (9)
397Visible = rowVisible 443row.Visible = rowVisible; 510row.Visible = rowVisible; 1427Visible = false, 3001Visible = rowVisible 3040row.Visible = rowVisible; 4442Visible = false, 4506row.Visible = rowVisible; 4580row.Visible = rowVisible;
System\Windows\Forms\DataGridViewHeaderCellTests.cs (18)
59Visible = rowVisible 72Visible = rowVisible 131row.Visible = rowVisible; 179row.Visible = rowVisible; 285row.Visible = rowVisible; 355row.Visible = rowVisible; 1844Visible = rowVisible 1857Visible = rowVisible 1911row.Visible = rowVisible; 1936row.Visible = rowVisible; 1962row.Visible = rowVisible; 2467Visible = false, 2558row.Visible = rowVisible; 2600row.Visible = rowVisible; 2668row.Visible = rowVisible; 2777row.Visible = rowVisible; 2840row.Visible = rowVisible; 2928row.Visible = rowVisible;
System\Windows\Forms\DataGridViewRowTests.cs (19)
1171Visible = visible, 1277row2.Visible = previousVisible; 3260Visible = value 3266row.Visible = value; 3271row.Visible = !value; 3287row.Visible = value; 3293row.Visible = value; 3299row.Visible = !value; 3325row.Visible = false; 3330row.Visible = false; 3335row.Visible = true; 3341row.Visible = true; 3356Assert.Throws<InvalidOperationException>(() => row.Visible = false); 3359row.Visible = true; 3372Assert.Throws<InvalidOperationException>(() => row.Visible = true); 3373Assert.Throws<InvalidOperationException>(() => row.Visible = false); 3940Visible = false 3983Visible = false 4032source.Visible = false;
WinFormsControlsTest (1)
DataGridViewTest.cs (1)
26dataGridView1.Rows.Add(new DataGridViewRow() { Visible = false });
29 references to Visible
System.Windows.Forms (8)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
17564invalidatePreferredSizeCache = dataGridViewRow.DataGridView is null && dataGridViewRow.Visible;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
752return OwningColumn!.Visible && OwningRow!.Visible; 756return OwningRow.Visible;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
737=> _owner?.OwningRow?.Visible is true && _owner.DataGridView is not null
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
169return OwningRow.Visible &&
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
337throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Visible))); 346throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Visible)));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
97int index = _owningDataGridViewRow is { Visible: true, DataGridView: { } }
System.Windows.Forms.Tests (20)
System\Windows\Forms\DataGridViewHeaderCellTests.cs (1)
1861Assert.Equal(rowVisible, row.Visible);
System\Windows\Forms\DataGridViewRowTests.cs (19)
47Assert.True(row.Visible); 3229Assert.True(row.Visible); 3241Assert.Throws<InvalidOperationException>(() => row.Visible); 3262Assert.Equal(value, row.Visible); 3267Assert.Equal(value, row.Visible); 3272Assert.Equal(!value, row.Visible); 3288Assert.Equal(value, row.Visible); 3294Assert.Equal(value, row.Visible); 3300Assert.Equal(!value, row.Visible); 3326Assert.False(row.Visible); 3331Assert.False(row.Visible); 3336Assert.True(row.Visible); 3342Assert.True(row.Visible); 3357Assert.True(row.Visible); 3360Assert.True(row.Visible); 3919Assert.True(row.Visible); 3959Assert.False(row.Visible); 4002Assert.False(row.Visible); 4051Assert.False(row.Visible);
WinFormsControlsTest (1)
DataGridViewTest.cs (1)
35if (row.Visible)