SheetControlErrorEventArgs Constructor
- Namespace
TXTextControl.TXSheetControl. Blazor
- Package
TXTextControl.asTXSheetControl. Blazor TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Blazor. dll
Creates error data with a machine-readable code and a human-readable message.
Syntax
public SheetControlErrorEventArgs(string Code, string Message)
Parameters
| Name | Type | Description |
|---|---|---|
Code | string | Machine-readable error code. |
Message | string | Human-readable failure details. |
Examples
private string errorMessage = "";
private void OnError(SheetControlErrorEventArgs args)
{
errorMessage = $"{args.Code}: {args.Message}";
}
// Bind errorMessage to application UI, for example a role="alert" element.
Remarks
Callback data is a detached snapshot. Update application UI in the callback and obtain a current workbook handle before editing cells.