Modifies the selection or moves the keyboard focus of the accessible object.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The following table describes the action that method will perform for each flags value.
The DataGridView takes focus.
The DataGridViewCell in the row takes focus.
When you specify the TakeSelection value, the column of the DataGridViewCell that currently has focus is the same as the cell that will take focus in the current DataGridViewRow. For example, if row 10, cell 3 has focus, and you specify TakeSelection for row 15, then row 15, cell 3 will have focus. The first cell in the row will take focus if no DataGridViewCell in the DataGridView has focus.