Occurs when a value should be validated while cell editing.
Namespace: Dapfor.Net.UiAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public event EventHandler<ValidateCellEventArgs> ValidateCell |
Visual Basic |
---|
Public Event ValidateCell As EventHandler(Of ValidateCellEventArgs) |
Visual C++ |
---|
public:
event EventHandler<ValidateCellEventArgs^>^ ValidateCell {
void add (EventHandler<ValidateCellEventArgs^>^ value);
void remove (EventHandler<ValidateCellEventArgs^>^ value);
} |
F# |
---|
member ValidateCell : IEvent<EventHandler<ValidateCellEventArgs>,
ValidateCellEventArgs>
|
Value
Type:
System..::..EventHandler<(Of <(<'ValidateCellEventArgs>)>)>Remarks
Examples
| Copy |
---|
grid.ValidateCell += OnValidateCell;
private void OnValidateCell(object sender, Ui.ValidateCellEventArgs e)
{
bool valid = e.Exception == null && string.IsNullOrEmpty(e.ErrorText);
if (!valid)
{
e.Action = ValidateCellAction.StopEdit;
e.ErrorText = "Please enter a valid value.";
}
} |
See Also