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

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

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

                    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);
        }