Ejemplo n.º 1
0
 public void RowHiddenChanged(HiddenRangeChangedEventArgs args)
 {
     this.Items.ForEach(row =>
     {
         if (row.RowIndex >= args.From && row.RowIndex <= args.To)
         {
             row.RowVisibility = args.Hide ? Visibility.Collapsed : Visibility.Visible;
         }
     });
 }
Ejemplo n.º 2
0
        public void ColumnHiddenChanged(HiddenRangeChangedEventArgs args)
        {
            // Merged from SfDataGrid
            // No need to change the visibility here, as the visibility of column gets changed in EnsureColumn of DataRow.
            //NeedToRefreshColumn set to true, in OnScrollColumnsChanged method of VisualContainer.

            // if the cell is in edit mode and hides the column, after unhiding focus should be in text box.

            //this.Items.ForEach(row => row.VisibleColumns.ForEach(column =>
            //{
            //    if (column.ColumnIndex >= args.From && column.ColumnIndex <= args.To)
            //    {
            //        column.ColumnVisibility = args.Hide ? Visibility.Collapsed : Visibility.Visible;
            //    }
            //}));
        }