17 references to GetState
System.Windows.Forms (12)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
999cellState = OwningRow.GetState(rowIndex) | State; 1786state |= (OwningRow.GetState(-1) & (DataGridViewElementStates.Frozen | DataGridViewElementStates.ReadOnly | DataGridViewElementStates.Selected | DataGridViewElementStates.Visible));
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
244state |= (OwningRow.GetState(rowIndex) & DataGridViewElementStates.Frozen);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (8)
326return GetState(Index); 1228return (GetState(rowIndex) & DataGridViewElementStates.Displayed) != 0; 1262return (GetState(rowIndex) & DataGridViewElementStates.Frozen) != 0; 1340return (GetState(rowIndex) & DataGridViewElementStates.ReadOnly) != 0 || 1346if ((GetState(rowIndex) & DataGridViewElementStates.ResizableSet) != 0) 1348return ((GetState(rowIndex) & DataGridViewElementStates.Resizable) != 0) ? DataGridViewTriState.True : DataGridViewTriState.False; 1363return (GetState(rowIndex) & DataGridViewElementStates.Selected) != 0; 1392return (GetState(rowIndex) & DataGridViewElementStates.Visible) != 0;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
1342return dataGridViewRow.GetState(rowIndex);
System.Windows.Forms.Tests (5)
System\Windows\Forms\DataGridViewRowTests.cs (5)
4514Assert.Equal(DataGridViewElementStates.Visible, row.GetState(-1)); 4527Assert.Equal(DataGridViewElementStates.Visible | DataGridViewElementStates.ReadOnly, row.GetState(0)); 4540Assert.Equal(DataGridViewElementStates.Visible, row.GetState(0)); 4551Assert.Throws<ArgumentException>("rowIndex", () => row.GetState(rowIndex)); 4565Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => row.GetState(rowIndex));