SourceGrid.Selection.SelectionBase.FocusRow C# (CSharp) Метод

FocusRow() публичный Метод

Move the Focus to the first cell that can receive the focus of the current row otherwise put the focus to null.
public FocusRow ( int row ) : bool
row int
Результат bool
        public bool FocusRow(int row)
        {
            if (Grid.Rows.Count > row)
            {
                for (int c = 0; c < Grid.Columns.Count; c++)
                {
                    Position newFocus = new Position(row, c);

                    if (Grid.Controller.CanReceiveFocus(new CellContext(Grid, newFocus), EventArgs.Empty))
                        return Focus(newFocus, true);
                }

                return Focus(Position.Empty, true);
            }
            else
                return Focus(Position.Empty, true);
        }