TX Sheet Control

SheetControlErrorEventArgs.Code Property

Property
Namespace
TXTextControl.TXSheetControl.Blazor
Package
TXTextControl.TXSheetControl.Blazor as TXTextControl.TXSheetControl.Blazor.dll from the private NuGet feed or the supplied NuGet folder

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.

See Also