Spread for ASP.NET 8.0 Product Documentation
onEditStart

Occurs when the user begins to edit a cell.

Syntax

[Inline HTML]

<ELEMENT onEditStart = "handler" ...>

[Event Property]

FpSpread1.onEditStart = handler

[Named Script]

<SCRIPT FOR=FpSpread1 EVENT=onEditStart>

Arguments

event.cell
Cell
event.row
Row index
event.col
Column index
event.cancel
Whether to cancel editing
event.spread
Spread that raises the event

Return Type

None

Remarks

This event is triggered when cell editing is started. To cancel the editing, you can set the argument event.cancel to true.

Example

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

JavaScript
Copy Code
<script type="text/javascript">
   function startSpreadEdit(event) {
      window.status = "Edit start " + event.cell.outerHTML;
      
      // Lock second row.
      if (FpSpread1.ActiveRow==1) event.cancel = true;
   }
</script>
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options | Documentation Feedback