Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / Column Class / CanFocus Property

In This Topic
    CanFocus Property (Column)
    In This Topic
    Gets or sets whether the user can set focus to the cell using the keyboard or mouse.
    Public Property CanFocus As Boolean
    Dim instance As Column
    Dim value As Boolean
    instance.CanFocus = value
    value = instance.CanFocus
    public bool CanFocus {get; set;}
    The combo box, button, text, hyperlink, radio button, and check box cells can still be edited if you set the CanFocus property to False. If you do not want the user to edit these cells, you will need to make the cell readonly.
    This example sets the CanFocus property.
    FpSpread1.Sheets[0].Cells[0, 1].CanFocus = false;
    FpSpread1.Sheets[0].Columns[2].CanFocus = true;
    FpSpread1.Sheets[0].Rows[2].CanFocus = true;
    FpSpread1.Sheets(0).Cells(0, 1).CanFocus = False
    FpSpread1.Sheets(0).Columns(2).CanFocus = True
    FpSpread1.Sheets(0).Rows(2).CanFocus = True
    See Also