Пример #1
0
 internal UnBoundDataRowCollectionChangedEventArgs(UnBoundRowsPosition position, NotifyCollectionChangedAction action, int count, int index)
 {
     Position = position;
     Action   = action;
     Count    = count;
     RowIndex = index;
 }
Пример #2
0
 /// <summary>
 /// Gets the total number of UnBoundRows in SfDataGrid according to the specified <see cref="Syncfusion.UI.Xaml.Grid.UnBoundRowsPosition"/>.
 /// </summary>
 /// <param name="grid">
 /// The SfDataGrid.
 /// </param>
 /// <param name="position">
 /// Specifies the position of unbound row to get its count.
 /// </param>
 /// <returns>
 /// Returns the total number of UnBoundRows in SfDataGrid.
 /// </returns>
 public static int GetUnBoundRowsCount(this SfDataGrid dataGrid, UnBoundRowsPosition position)
 {
     if (position == UnBoundRowsPosition.Top)
     {
         return(dataGrid.UnBoundRows.TopBodyUnboundRowCount + dataGrid.UnBoundRows.FrozenUnboundRowCount);
     }
     else
     {
         return(dataGrid.UnBoundRows.BottomBodyUnboundRowCount + dataGrid.UnBoundRows.FooterUnboundRowCount);
     }
 }
Пример #3
0
 /// <summary>
 /// Gets the total number of UnboundRows in SfDataGrid according to the specified <see cref="Syncfusion.UI.Xaml.Grid.UnBoundRowsPosition"/> and summary location.
 /// </summary>
 /// <param name="dataGrid">
 /// The SfDataGrid.
 /// </param>
 /// <param name="position">
 /// Specifies the position of UnBoundRows to get its count.
 /// </param>
 /// <param name="belowSummary">
 /// Specifies whether the UnBoundRow is placed above or below summary row.
 /// </param>
 /// <returns>
 /// Returns the total number of UnBoundRows in SfDataGrid.
 /// </returns>
 public static int GetUnBoundRowsCount(this SfDataGrid dataGrid, UnBoundRowsPosition position, bool belowSummary)
 {
     if (position == UnBoundRowsPosition.Top)
     {
         return(belowSummary ? dataGrid.UnBoundRows.TopBodyUnboundRowCount : dataGrid.UnBoundRows.FrozenUnboundRowCount);
     }
     else
     {
         return(belowSummary ? dataGrid.UnBoundRows.FooterUnboundRowCount : dataGrid.UnBoundRows.BottomBodyUnboundRowCount);
     }
 }