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