ErrorText Property
Collapse the table of content
Expand the table of content

DataGridViewRowErrorTextNeededEventArgs.ErrorText Property


Gets or sets the error text for the row.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public string ErrorText { get; set; }

Property Value

Type: System.String

A string that represents the error text for the row.

This property initially contains the value of the DataGridViewRow.ErrorText property if it has been set for a row.

The ErrorText property value displays as a ToolTip for the error glyph in the row header.

The following code example demonstrates how to use the ErrorText property in an event handler. Although the code actually uses the DataGridViewCellErrorTextNeededEventArgs.ErrorText property, this property is nearly identical to the ErrorText property of DataGridViewRowErrorTextNeededEventArgs.

Snippet section 24 of code snippet {"project_id":"3fedad16-eaf1-41a6-8f96-0c1949c68f32","entity_id":"49b2de81-d65a-4b0a-9253-be7b8cf9c59d","entity_type":"CodeSnippet","locale":"en-US"} in source file ({"filename":"/CS/sharedrows.cs","blob_type":"Source","blob_id":"-002fcs-002fsharedrows-002ecs","blob_revision":3}) overlaps with other snippet sections. Ensure the tags are placed correctly.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft