Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ClipboardRowPastingEventArgs.IsValueValid(String, Object, out Exception) Method

Returns whether the specified value can be pasted to the column with the specified field name.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

public bool IsValueValid(
    string fieldName,
    object value,
    out Exception e
)

#Parameters

Name Type Description
fieldName String

The field name that identifies the column to be tested.

value Object

The value to be tested.

e Exception

The exception that specifies the error description. null if no error occurs.

#Returns

Type Description
Boolean

true if the specified value can be pasted to the specified column; otherwise, false. In case of failure, read the e output parameter to get details.

#Remarks

A value can be pasted to a column cell if the data types match or if they are compatible. If a value cannot be accepted by a column, the IsValueValid method returns false, and you can read the e output parameter to identify the error.

See Also