DataNavigatorIsValid Property
This property can be used to query the current row 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
// Prevent a change of the tree view node if the current row in the
// data navigator is not valid.
private void tree_BeforeSelect(object sender, TreeViewCancelEventArgs e)
{
e.Cancel = !dataNav.IsValid;
}
' Prevent a change of the tree view node if the current row in the
' data navigator is not valid.
Private Sub tree_BeforeSelect(sender As Object, e As TreeViewCancelEventArgs) _
Handles tree.BeforeSelect
e.Cancel = Not dataNav.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.