DataAdapter.FillError Event

Definition

Returned when an error occurs during a fill operation.

C#
public event System.Data.FillErrorEventHandler? FillError;
C#
public event System.Data.FillErrorEventHandler FillError;

Event Type

Remarks

The FillError event allows a user to determine whether or not the fill operation should continue after the error occurs. Examples of when the FillError event might occur are:

  • The data being added to a DataSet cannot be converted to a common language runtime type without losing precision.

  • The row being added contains data that violates a Constraint that must be enforced on a DataColumn in the DataSet.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also