Back to Devexpress

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

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-clipboardrowpastingeventargs-dot-isvaluevalid-x28-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-system-dot-object-system-dot-exception-x29.md

latest2.7 KB
Original Source

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

Returns whether the specified value can be pasted to the specified column cell.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public bool IsValueValid(
    GridColumn gridColumn,
    object value,
    out Exception e
)
vb
Public Function IsValueValid(
    gridColumn As GridColumn,
    value As Object,
    ByRef e As Exception
) As Boolean

Parameters

NameTypeDescription
gridColumnGridColumn

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

TypeDescription
Boolean

true if the specified value can be pasted to the specified column’s cell; 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

IsRowValid()

GetInvalidValues()

GetValidValues()

ClipboardRowPastingEventArgs Class

ClipboardRowPastingEventArgs Members

DevExpress.XtraGrid.Views.Grid Namespace