Back to Devexpress

InvalidRowExceptionEventArgs.WindowCaption Property

wpf-devexpress-dot-xpf-dot-grid-dot-invalidrowexceptioneventargs-b3a06e8a.md

latest3.0 KB
Original Source

InvalidRowExceptionEventArgs.WindowCaption Property

Gets or sets the error window’s caption.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public string WindowCaption { get; set; }
vb
Public Property WindowCaption As String

Property Value

TypeDescription
String

A String value that specifies the caption of the error window.

|

Remarks

The WindowCaption property specifies the caption of the message box displayed when the InvalidRowExceptionEventArgs.ExceptionMode property is set to ExceptionMode.DisplayError. The text displayed within this message box can be specified, using the InvalidRowExceptionEventArgs.ErrorText property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the WindowCaption property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-initialize-new-item-row-with-default-values/CS/NewItemRow_CodeBehind/MainWindow.xaml.cs#L50

csharp
e.ErrorText = "Please enter the Product Name.";
    e.WindowCaption = "Input Error";
}

wpf-data-grid-initialize-new-item-row-with-default-values/VB/NewItemRow_CodeBehind/MainWindow.xaml.vb#L55

vb
e.ErrorText = "Please enter the Product Name."
    e.WindowCaption = "Input Error"
End If

See Also

InvalidRowExceptionEventArgs Class

InvalidRowExceptionEventArgs Members

DevExpress.Xpf.Grid Namespace