Spread ASP.NET 6.0 Product Documentation
Editor Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Row Class : Editor Property


Glossary Item Box

Gets or sets the default editor for cells in this row.

Syntax

Visual Basic (Declaration) 
Public Property Editor As IEditor
Visual Basic (Usage)Copy Code
Dim instance As Row
Dim value As IEditor
 
instance.Editor = value
 
value = instance.Editor
C# 
public IEditor Editor {get; set;}

Property Value

IEditor object containing the editor for cells in this row

Example

This example creates a Row object, a CheckBoxEditor object, and a CheckBoxRenderer object for the active sheet of a sheet. The CheckBoxEditor is assigned to the Row object's Editor property, and the CheckBoxRenderer is assigned to the Row object's Renderer property. The Row object is then assigned to the first row of the sheet, such that all cells in the first row are check boxes. The Editor value of the Row object is returned to a text box.
C#Copy Code
    FarPoint.Web.Spread.Row myrow; 
    FarPoint.Web.Spread.Editor.CheckBoxEditor edit = new FarPoint.Web.Spread.Editor.CheckBoxEditor(); 
    FarPoint.Web.Spread.Renderer.CheckBoxRenderer rend = new FarPoint.Web.Spread.Renderer.CheckBoxRenderer("img/checked.gif",
"img/unchecked.gif"); 
    myrow = FpSpread1.ActiveSheetView.Rows[0]; 
    myrow.Editor = edit;
    myrow.Renderer = rend; 
    TextBox1.Text = Convert.ToString(myrow.Editor);
Visual BasicCopy Code
    Dim myrow As FarPoint.Web.Spread.Row
    Dim edit As New FarPoint.Web.Spread.Editor.CheckBoxEditor()
    Dim rend As New FarPoint.Web.Spread.Renderer.CheckBoxRenderer("img/checked.gif", "img/unchecked.gif")    
    myrow = FpSpread1.ActiveSheetView.Rows(0)
    myrow.Editor = edit
    myrow.Renderer = rend
    TextBox1.Text = Convert.ToString(myrow.Editor)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.