Visual Basic (Declaration) | |
---|---|
Public Property CanFocus As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As AlternatingRow Dim value As Boolean instance.CanFocus = value value = instance.CanFocus |
C# | |
---|---|
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.
C# | Copy Code |
---|---|
FpSpread1.Sheets[0].AlternatingRows[0].CanFocus = false; |
VB.NET | Copy Code |
---|---|
FpSpread1.Sheets(0).AlternatingRows(0).CanFocus = False |
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6