SheetControlErrorEventArgs.Code Property
- Namespace
TXTextControl.TXSheetControl. Blazor
- Package
TXTextControl.asTXSheetControl. Blazor TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Blazor. dll
Machine-readable initialization or event-handler error code.
Syntax
public string Code { get; init; }
Property Value
string. Machine-readable initialization or event-handler error code.
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.