APNSoft Controls [4.5.2.20] - API Reference
APNSoftDataGrid.ClientSideBeforeCellUpdate Property

Gets or sets the client-side code (procedure) to be launched before Cell Update. This code can be used for data validation and auto correction. Property value can include variables $ComponentID$, $RowID$, $ColumnName$ and $CellValue$, instead of which data is inserted.

[Visual Basic]
Public Property ClientSideBeforeCellUpdate As String
[C#]
public string ClientSideBeforeCellUpdate {get; set;}

Remarks

This procedure should return error message (is displayed as alert) or false if the value is not correct. The CellValue is received in escaped form. To unescape value, use the unescape(CellValue) JavaScript method. To save corrected value, set the client-side variable dg.CellValue.

See Also

APNSoftDataGrid Class | APNSoft.WebControls Namespace