Assembly: System.Windows.Forms (in system.windows.forms.dll)
protected virtual bool SetCurrentCellAddressCore ( int columnIndex, int rowIndex, bool setAnchorCellAddress, bool validateCurrentCell, bool throughMouseClick )
protected boolean SetCurrentCellAddressCore ( int columnIndex, int rowIndex, boolean setAnchorCellAddress, boolean validateCurrentCell, boolean throughMouseClick )
protected function SetCurrentCellAddressCore ( columnIndex : int, rowIndex : int, setAnchorCellAddress : boolean, validateCurrentCell : boolean, throughMouseClick : boolean ) : boolean
The index of the column containing the cell.
The index of the row containing the cell.
true to make the new current cell the anchor cell for a subsequent multicell selection using the SHIFT key; otherwise, false.
true to validate the value in the old current cell and cancel the change if validation fails; otherwise, false.
true if the current cell is being set as a result of a mouse click; otherwise, false.
Return Valuetrue if the current cell was successfully set; otherwise, false.
columnIndex is less than 0 or greater than the number of columns in the control minus 1, and rowIndex is not -1.
rowIndex is less than 0 or greater than the number of rows in the control minus 1, and columnIndex is not -1.
The specified cell has a Visible property value of false.
This method was called for a reason other than the underlying data source being reset, and another thread is currently executing this method.
The DataGridView control uses this method whenever it changes the current cell. This method changes the current cell without changing the selection and optionally without validating the previous cell or changing the selection anchor cell. The anchor cell is the first cell of a block of multiple cells that the user can select by holding down the SHIFT key and clicking the last cell of the block.
If rowIndex and columnIndex are both -1, the CurrentCell property returns a null reference (Nothing in Visual Basic).
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.