DataListIsValid Property
This property can be used to query the current row template to see if it is valid
Namespace: EWSoftware.ListControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public bool IsValid { get; }
Public ReadOnly Property IsValid As Boolean
Get
public:
property bool IsValid {
bool get ();
}
member IsValid : bool with get
Property Value
BooleanReturns true if it is valid or there are no items, false if it is not
This is useful in situations where the normal validating events are fired after certain
other events (i.e. tree view and data grid item selection events).
// Prevent a change of the tree view node if the current row
// template in the data list is not valid.
private void tree_BeforeSelect(object sender, TreeViewCancelEventArgs e)
{
e.Cancel = !dataList.IsValid;
}
' Prevent a change of the tree view node if the current row
' template in the data list is not valid.
Private Sub tree_BeforeSelect(sender As Object, e As TreeViewCancelEventArgs) _
Handles tree.BeforeSelect
e.Cancel = Not dataList.IsValid
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.