# SheetControlErrorEventArgs Class

> SheetControlErrorEventArgs class in the TX Sheet Control .NET API: Initialization, transport or event-handler failure with its machine-readable code.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Blazor`
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Blazor.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Implements:** `System.IEquatable<TXTextControl.TXSheetControl.Blazor.SheetControlErrorEventArgs>`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Blazor > SheetControlErrorEventArgs Class
- **403 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontrolerroreventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontrolerroreventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontrolerroreventargs/llms-full.txt

---

Initialization, transport or event-handler failure with its machine-readable code.

### Syntax

```csharp
public class SheetControlErrorEventArgs
```

### Members

| Member | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontrolerroreventargs/constructor/llms-full.txt) | Creates SheetControlErrorEventArgs settings or event data for the component. |
| [Code](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontrolerroreventargs/code-property/llms-full.txt) | Machine-readable initialization or event-handler error code. |
| [Message](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontrolerroreventargs/message-property/llms-full.txt) | Human-readable details of the initialization or event-handler failure. |

### Examples

```csharp
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

Use the component only after interactive rendering. Browser document operations execute in the editor through JavaScript interop. Completed notifications cannot synchronously cancel edits.

### See Also

- [Blazor Tutorial](https://docs.textcontrol.com/tx-sheet-control/getting-started/spreadsheet-editor/blazor/llms-full.txt).

---

## In This Section

- [SheetControlErrorEventArgs.Code Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontrolerroreventargs/code-property/llms-full.txt): SheetControlErrorEventArgs.Code property in the TX Sheet Control .NET API: Machine-readable initialization or event-handler error code.
- [SheetControlErrorEventArgs Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontrolerroreventargs/constructor/llms-full.txt): SheetControlErrorEventArgs constructor in the TX Sheet Control .NET API: Creates error data with a machine-readable code and a human-readable message.
- [SheetControlErrorEventArgs.Message Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontrolerroreventargs/message-property/llms-full.txt): SheetControlErrorEventArgs.Message property in the TX Sheet Control .NET API: Human-readable details of the initialization or event-handler failure.

---

## Nearby

- **Previous:** [SelectionChangedEventArgs.SheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/sheetid-property/llms-full.txt)
- **Next:** [SheetControlErrorEventArgs Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontrolerroreventargs/constructor/llms-full.txt)
