Spread for ASP.NET 7.0 Product Documentation
AddSelection
See Also Support Options
Spread for ASP.NET 7.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > AddSelection

Glossary Item Box

Adds a selection.

Syntax

[JavaScript]

FpSpread1.AddSelection(row,column,rowcount,columncount);

Parameters

row
Integer, row index
column
Integer, column index
rowcount
Integer, number of rows
columncount
Integer, number of columns

Return Type

None

Remarks

This method is similar to selecting cells with the mouse.

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 addSelRanges() {
       FpSpread1.AddSelection(0,0,1,1); // adds a selection
       FpSpread1.AddSelection(2,2,1,1); // adds another selection
   }
</SCRIPT>

See Also

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