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

Glossary Item Box

Sorts a specified column.

Syntax

[JavaScript]

FpSpread1.SortColumn(column);

Parameters

column
Integer, column index

Return Type

None

Remarks

This method sorts the column. The AllowSort property must be set to True for the sheet. This method causes a postback to occur.

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 OutOfEdit() { 
       FpSpread1.SortColumn(1);
   } 
</SCRIPT>

See Also

StartEdit | onEditStart | onEditStopped | Scripting Members

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