| Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > ClearSelection | 
Clears all the selections in the display.
[JavaScript]
FpSpread1.ClearSelection();
None
None
This method changes the display on the client so that no cells are selected. This method does not cause 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 language=javascript> function removeSelRanges() { FpSpread1.ClearSelection(); // clears all selections in display } </SCRIPT>  | 
            |