Expandir Minimizar
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
Tradução
Original
Este tópico ainda não foi avaliado como - Avalie este tópico

DataGridView.SetSelectedCellCore Método

Altera o estado de seleção da célula com os índices de linha e coluna especificadas.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (em System.Windows.Forms. dll)
protected virtual void SetSelectedCellCore(
	int columnIndex,
	int rowIndex,
	bool selected
)

Parâmetros

columnIndex
Tipo: System.Int32
O índice da coluna que contém a célula.
rowIndex
Tipo: System.Int32
O índice da linha que contém a célula.
selected
Tipo: System.Boolean
true to select the cell; false to cancel the selection of the cell.
ExceçãoCondição
ArgumentOutOfRangeException

columnIndex is less than 0 or greater than the number of columns in the control minus 1.

-ou-

rowIndex is less than 0 or greater than the number of rows in the control minus 1.

The DataGridView control uses this method whenever it changes the selection state of a cell.The selection state changes without regard to the current SelectionMode property value, and without changing the CurrentCell property value.Isso é útil quando você deseja implementar seus próprios modos de seleção.

Isso foi útil para você?
(1500 caracteres restantes)

Contribuições da comunidade

ADICIONAR
© 2013 Microsoft. Todos os direitos reservados.