- indexPath
- Identifies the row to be selected.
- animated
- true to animate the selection and position change, false if the change should occur immediately.
- scrollPosition
- Position that the selected row should be scrolled to (top, middle, bottom).
Passing UITableViewScrollPosition.None. will result in no scrolling (despite that constant normally causing minimal scrolling). To scroll to the newly selected row with minimum scrolling, select the row using this method with UITableViewScrollPosition.None then call UITableView.ScrollToRow(Foundation.NSIndexPath, UITableViewScrollPosition, bool) also with UITableViewScrollPosition.None.
C# Example
NSIndexPath rowToSelect; // assume this is valid
UITableView myTableView; // assume this is valid
myTableView.SelectRow (rowToSelect, true, UITableViewScrollPosition.None);
myTableView.ScrollToRow (rowToSelect, UITableViewScrollPosition.None, true);