Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > SortColumn |
Sorts a specified column.
[JavaScript]
FpSpread1.SortColumn(column);
None
This method sorts the column. The AllowSort property must be set to True for the sheet. This method causes a postback to occur.
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 type="text/javascript"> function OutOfEdit() { FpSpread1.SortColumn(1); } </script> |