menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ValidationHelper - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ValidationHelper

    Implements validation for user input through built-in validation or events of SfDataGrid.

    Inheritance
    System.Object
    ValidationHelper
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public class ValidationHelper : Object

    Constructors

    ValidationHelper(SfDataGrid)

    Initializes a new instance of ValidationHelper class.

    Declaration
    public ValidationHelper(SfDataGrid datagrid)
    Parameters
    Type Name Description
    SfDataGrid datagrid

    The SfDataGrid.

    Properties

    ActiveGrid

    Gets or sets the reference to the currently active SfDataGrid during validation.

    Declaration
    public SfDataGrid ActiveGrid { get; set; }
    Property Value
    Type Description
    SfDataGrid

    The reference to the currently active SfDataGrid.

    IsCellValidated

    Gets or sets the value that indicates the validation status of current cell.

    Declaration
    public bool IsCellValidated { get; }
    Property Value
    Type Description
    System.Boolean

    Returns true if the current cell validation is successful; otherwise, false.

    IsFocusSetBack

    Gets or sets the value that indicates to prevent the CellValidating and RowValidating events to be raised more than once when click on FilterToggleButton.

    Declaration
    public bool IsFocusSetBack { get; }
    Property Value
    Type
    System.Boolean
    Remarks

    If IsFocusSetBack true then end user can't move out of the current cell by tapping on DataGridCell. While doing key navigation and clicking on FilterToggleButton IsFocusSetBack needs to be in false to do Validation.

    IsRowValidated

    Gets or sets the value that indicates the validation status of current row.

    Declaration
    public bool IsRowValidated { get; }
    Property Value
    Type Description
    System.Boolean

    Returns true if the current row validation is successful; otherwise, false.

    Methods

    SetCurrentCellValidated(Boolean)

    Sets the ActiveGrid and IsCellValidated value.

    Declaration
    public void SetCurrentCellValidated(bool isCellValidated)
    Parameters
    Type Name Description
    System.Boolean isCellValidated

    Indicates whether the current cell validation is successful.

    SetCurrentRowValidated(Boolean)

    Sets the ActiveGrid and IsRowValidated value.

    Declaration
    public void SetCurrentRowValidated(bool isRowValidated)
    Parameters
    Type Name Description
    System.Boolean isRowValidated

    Indicates whether the current row validation is successful.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved