Spread ASP.NET 6.0 Product Documentation
Cells
Send Feedback
Spread ASP.NET 6.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > Cells

Glossary Item Box

This method represents a cell on the client side and allows you to get or set various cell properties.

Syntax

[JavaScript]

FpSpread1.Cells(r,c);

Parameters

row
Integer, row index
column
Integer, column index

Return Type

None

Remarks

This method allows you to get or set various cell properties such as Value, BackColor, ForeColor, TabStop, HorizontalAlign, VerticalAlign, Locked, Font_Name, Font_Size, Font_Bold, Font_Italic, Font_Overline, Font_Strikeout, and Font_Underline. Select the Object Model menu option in the NewFeatures sample project (under the product folder) to see code samples for the cell properties.

Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

JavaScript Copy Code
<SCRIPT language=javascript>
   function onCancelButtonClick() { 
       var spread = FpSpread("FpSpread1");
       spread.Cells(1,2).SetValue("123"); // sets the cell property
   } 
</SCRIPT>

See Also

Update | UpdatePostBackData | Scripting Members

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