Articles in this section
Category / Section

How to fire RowValidating event for GridCheckBoxColumn in SfDataGrid in WindowsPhone ?

1 min read

You can fire the validation events for GridCheckBoxColumn by marking current row validated flag as false using ValidationHelper.SetCurrentRowValidated method in CurrentCellValueChanged event.

 C#: 

           
  void sfGrid_CurrentCellValueChanged(object sender, Syncfusion.UI.Xaml.Grid.CurrentCellValueChangedEventArgs args)
    {
        int columnIndex = this.sfGrid.ResolveToGridVisibleColumnIndex(args.RowColumnIndex.ColumnIndex);
 
        //We are enabling the RowValidating event if the changes happen in GridCheckBoxColumn
        if (this.sfGrid.Columns[columnIndex].CellType == "CheckBox")
        {
            this.sfGrid.GetValidationHelper().SetCurrentRowValidated(false);
        }
   }

 

Samples:

WPF

WinRT

WindowsPhone

UWP

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied