Spread for ASP.NET 7.0 Product Documentation
IsEditable Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > BaseSheetDataModel Class : IsEditable Method


row
Row index
column
Column index

Glossary Item Box

Determines whether the contents of a cell at a specified row and column are editable.

Syntax

Visual Basic (Declaration) 
Public Overridable Function IsEditable( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As BaseSheetDataModel
Dim row As Integer
Dim column As Integer
Dim value As Boolean
 
value = instance.IsEditable(row, column)
C# 
public virtual bool IsEditable( 
   int row,
   int column
)

Parameters

row
Row index
column
Column index

Return Value

true if the cell contents can be edited; false otherwise

Remarks

To check if a cell is empty, use the IsEmpty method.

Example

This example checks to see if the contents are editable for a cell in a specified row and column.
C#Copy Code
FarPoint.Web.Spread.Model.BaseSheetDataModel bdm;
bool b;
bdm = (FarPoint.Web.Spread.Model.BaseSheetDataModel)FpSpread1.ActiveSheetView.DataModel;
bdm.SetValue(0, 0, "Test Editable");
b = bdm.IsEditable(0, 0);
Response.Write("The cell can be edited is " + b.ToString());
Visual BasicCopy Code
Dim bdm As FarPoint.web.Spread.Model.BaseSheetDataModel
Dim b As Boolean
bdm = FpSpread1.ActiveSheetView.DataModel
bdm.SetValue(0, 0, "Test Editable")
b = bdm.IsEditable(0, 0)
Response.Write("The cell can be edited is " & b.ToString())

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.