-Set the footer frozen rows count at the bottom of the SfDataGrid.
+Set the footer rows count at the bottom of the SfDataGrid.
|
|
-Set the footer frozen columns on the right side of the SfDataGrid.
- |
-|
| -frozenPaneElevation - | --Customize the elevation effect applied to frozen panes. Default value is 5.0. Set to 0.0 to remove elevation and display only the frozen pane line. - | -
| -frozenPaneLineColor - | --Customize the color of the line displayed at the edge of frozen panes. - | -
| -frozenPaneLineWidth - | -
-Customize the width of the line displayed at the edge of frozen panes.
+Set the footer columns on the right side of the SfDataGrid.
|
| Description | |||
|---|---|---|---|
expandAllGroup |
-Expands all the groups in the SfDataGrid | +DataGridController.expandAllGroup |
+Expands all the groups in the SfDataGrid |
collapseAllGroup |
-Collapses all the groups in the SfDataGrid | +DataGridController.collapseAllGroup. |
+Collapses all the groups in the SfDataGrid |
expandGroupsAtLevel |
-Expands the groups based on the group level | +DataGridController.expandGroupsAtLevel. |
+Expands the group based on the group level |
collapseGroupsAtLevel |
-Collapses the groups based on the group level | +DataGridController.collapseGroupsAtLevel. |
+Collapses the group based on the group level |
## Localization in Flutter DataPager (SfDataPager)
-By default, the [SfDataPager](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager-class.html) widget supports US English localizations. You can change the language by specifying the `MaterialApp` properties and adding the necessary localization packages to your application.
-
-The [SfDataPager](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager-class.html) supports two localization scenarios:
+By default, the [SfDataPager](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager-class.html) widget supports US English localizations. You can change the other languages by specifying the `MaterialApp` properties and adding the `flutter_localizations` package to your application.
-1. **Basic localization (UI labels)** - Using `flutter_localizations`
-2. **Complete localization (static strings)** - Using both `flutter_localizations` and `syncfusion_localizations`
-
-### Basic DataPager Localization
-
-To localize the basic UI elements, add `flutter_localizations` to your `pubspec.yaml` file:
+To use `flutter_localizations`, add the package as a dependency to the `pubspec.yaml` file.
{% highlight dart %}
@@ -133,272 +118,198 @@ flutter_localizations:
{% endhighlight %}
-> **Note:** Run `flutter pub get` to fetch the newly added dependency.
-
-Next, import the `flutter_localizations` library and specify [localizationsDelegates](https://api.flutter.dev/flutter/widgets/LocalizationsDelegate-class.html) and `supportedLocales` for `MaterialApp`:
+Next, import the `flutter_localizations` library and specify [localizationsDelegates](https://api.flutter.dev/flutter/widgets/LocalizationsDelegate-class.html) and `supportedLocales` for `MaterialApp`.
{% tabs %}
{% highlight Dart %}
import 'package:flutter_localizations/flutter_localizations.dart';
- List
-
-### Localize Static Strings in DataPager
+## Localize the static string in DataPager
-Static strings in the [SfDataPager](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager-class.html) (such as pagination labels and navigation text) can be localized using the [syncfusion_localizations](https://pub.dev/packages/syncfusion_localizations) package.
+Static strings in the data pager can be localized using the [syncfusion_localizations](https://pub.dev/packages/syncfusion_localizations) package and specifying `localizationsDelegates` in `MaterialApp`.
-To use `syncfusion_localizations`, add it as a dependency to the `pubspec.yaml` file:
+To use `syncfusion_localizations`, add the package as a dependency to the `pubspec.yaml` file.
{% highlight dart %}
dependencies:
-flutter_localizations:
- sdk: flutter
-syncfusion_localizations: ^34.1.29
+syncfusion_localizations: ^18.3.35
{% endhighlight %}
-> **Note:** Run `flutter pub get` to fetch the newly added dependencies.
-
-Next, import both `flutter_localizations` and `syncfusion_localizations` libraries:
+Next, import the `syncfusion_localizations` library.
{% highlight dart %}
-import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:syncfusion_localizations/syncfusion_localizations.dart';
{% endhighlight %}
-Then, declare the [SfGlobalLocalizations.delegate](https://pub.dev/documentation/syncfusion_localizations/latest/syncfusion_localizations/SfGlobalLocalizations/delegate-constant.html) in the `localizationsDelegates,` which is used to localize the static strings available in the DataPager and specify the `supportedLocales` as well:
+Then, declare the [SfGlobalLocalizations.delegate](https://pub.dev/documentation/syncfusion_localizations/latest/syncfusion_localizations/SfGlobalLocalizations/delegate-constant.html) in the `localizationsDelegates,` which is used to localize the static string available in the data pager and specify the `supportedLocales` as well.
{% tabs %}
{% highlight Dart %}
-final int rowsPerPage = 15;
-
-class Employee {
- Employee(this.id, this.name, this.designation, this.salary);
-
- final int id;
- final String name;
- final String designation;
- final int salary;
-}
+ final int rowsPerPage = 15;
@override
Widget build(BuildContext context) {
return MaterialApp(
- localizationsDelegates: const [
- GlobalMaterialLocalizations.delegate,
- GlobalWidgetsLocalizations.delegate,
- SfGlobalLocalizations.delegate,
- ],
- supportedLocales: const [Locale('zh'), Locale('ar'), Locale('ja')],
- locale: const Locale('zh'),
- home: Scaffold(
- appBar: AppBar(title: const Text('DataPager')),
- body: LayoutBuilder(
- builder: (context, constraints) {
- return Column(
- children: [
- SizedBox(
- height: constraints.maxHeight - 60,
- width: constraints.maxWidth,
- child: SfDataGrid(
- source: _employeeDataSource,
- columns:
diff --git a/Flutter/datagrid/overview.md b/Flutter/datagrid/overview.md
index c1651dc37..64b6e6e96 100644
--- a/Flutter/datagrid/overview.md
+++ b/Flutter/datagrid/overview.md
@@ -1,65 +1,39 @@
---
layout: post
-title: About Flutter DataGrid widget | DataTable | Syncfusion®
-description: Learn about the introduction of the Syncfusion® Flutter DataGrid (SfDataGrid) widget, its features, and more.
+title: About Syncfusion Flutter DataGrid Control | Syncfusion®
+description: Learn about the Syncfusion® Flutter DataGrid widget, its powerful features, and capabilities for displaying, managing, and interacting with data efficiently.
platform: flutter
control: SfDataGrid
documentation: ug
---
-# Flutter DataGrid (SfDataGrid) Overview
+# About Syncfusion Flutter DataGrid Control
The Syncfusion® Flutter DataGrid is used to display and manipulate data in a tabular view. It is built from the ground up to achieve the best possible performance, even when loading large amounts of data.

-## Key Features
-
-### Data Presentation
-* [**Column types**](column-types.md) - Display any widget in each column, allowing for flexible content presentation.
-* [**Column sizing**](columns-sizing.md) - Configure column widths with various sizing options. Automatically adjust columns based on cell content to enhance readability.
-* [**Row height**](row-height-customization.md) - Customize heights for header and data rows. Automatically adjust row heights based on cell content. Set different heights for specific rows as needed.
-* [**Styling**](styles.md) - Customize the appearance of cells and headers with support for conditional styling.
-* [**Stacked headers**](stacked-headers.md) - Create unbound header rows that span across multiple rows and columns.
-* [**Footer**](footer.md) - Show an additional row that can be displayed under the last row. Widgets can also be displayed in the footer row.
-
-### Data Manipulation
-* [**Editing**](editing.md) - Enable users to modify cell values with support for custom editor widgets based on column types.
-* [**Sorting**](sorting.md) - Sort data in ascending or descending order across single or multiple columns.
-* [**Filtering**](filtering.md) - Filter data interactively similar to Excel with support for text, numeric, and date-time filtering. Programmatic filtering is also available.
-* [**Selection**](selection.md) - Select one or more rows with keyboard navigation support for web platforms.
-* [**Swiping**](swiping.md) - Implement swipe actions (left-to-right or right-to-left) for operations like deleting or editing rows.
-
-### Layout and Navigation
-* [**Column Drag and Drop**](column-drag-and-drop.md) - Reorder columns by dragging and dropping them to desired positions.
-* [**Column resizing**](columns-resizing.md) - Adjust column widths by dragging the right edge of column headers.
-* [**Freeze Panes**](freeze-panes.md) - Freeze the rows and columns when scrolling the grid.
-* [**Scrolling**](scrolling.md) - Scroll through large datasets efficiently with optimized rendering.
-
-### Data Loading and Performance
-* [**Load more**](load-more.md) - Display an interactive view when scrolling reaches the bottom of the grid, enabling on-demand data loading.
-* [**Paging**](paging.md) - Load data in segments. It is useful when loading huge amounts of data.
-* [**Pull to refresh**](pull-to-refresh.md) - Allows users to refresh data when the DataGrid is pulled down.
-
-### Export and Integration
-* [**Exporting**](export-to-excel.md) - Export data to [Excel](export-to-excel.md) and [PDF](export-to-pdf.md) formats.
-* [**Grouping**](grouping.md) - Group rows by one or more columns for better data organization.
-* [**Summaries**](summaries.md) - Display aggregate values for grouped or all data.
-### Customization and Accessibility
-* [**Theme**](https://help.syncfusion.com/flutter/themes) - Use a dark or light theme.
-* [**Accessibility**](accessibility.md) - Ensure screen readers can properly access and navigate the DataGrid.
-* [**Right to Left (RTL)**](right-to-left.md) - Support right-to-left layouts for languages like Hebrew and Arabic.
-* [**Localization**](localization.md) - Support multiple languages and regional formats.
-
-## Getting Started
-
-To start using the SfDataGrid widget in your Flutter application, refer to the [Getting Started with Flutter DataGrid](getting-started.md) documentation.
-
-## API Reference
-
-For a complete list of properties, methods, and events of the SfDataGrid widget, refer to the [SfDataGrid API documentation](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataGrid-class.html).
-
-## Sample GitHub Repository
+## Key Features
-You can download a complete working sample from the [GitHub repository](https://github.com/SyncfusionExamples/getting-started-with-flutter-datagrid) to explore the SfDataGrid widget with various features implemented.
+* **Column types** - Display any widget in each column, allowing for flexible content presentation.
+* **Column sizing** - Configure column widths with various sizing options. Automatically adjust columns based on cell content to enhance readability.
+* **Row height** - Customize heights for header and data rows. Automatically adjust row heights based on cell content. Set different heights for specific rows as needed.
+* **Editing** - Enable users to modify cell values with support for custom editor widgets based on column types.
+* **Sorting** - Sort data in ascending or descending order across single or multiple columns.
+* **Selection** - Select one or more rows with keyboard navigation support for web platforms.
+* **Filtering** - Filter data interactively similar to Excel with support for text, numeric, and date-time filtering. Programmatic filtering is also available.
+* **Column Drag and Drop** - Reorder columns by dragging and dropping them to desired positions.
+* **Column resizing** - Adjust column widths by dragging the right edge of column headers.
+* **Exporting** - Export data to Excel and PDF formats.
+* **Styling** - Customize the appearance of cells and headers with support for conditional styling.
+* **Stacked headers** - Create unbound header rows that span across multiple rows and columns.
+* **Load more** - Display an interactive view when scrolling reaches the bottom of the grid, enabling on-demand data loading.
+* **Paging** - Load data in segments. It is useful when loading huge amounts of data.
+* **Freeze Panes** - Freeze the rows and columns when scrolling the grid.
+* **Swiping** - Implement swipe actions (left-to-right or right-to-left) for operations like deleting or editing rows.
+* **Footer** - Show an additional row that can be displayed under the last row. Widgets can also be displayed in the footer row.
+* **Pull to refresh** - Allows users to refresh data when the DataGrid is pulled down.
+* **Theme** - Use a dark or light theme.
+* **Accessibility** - Ensure screen readers can properly access and navigate the DataGrid.
+* **Right to Left (RTL)** - Support right-to-left layouts for languages like Hebrew and Arabic.
diff --git a/Flutter/datagrid/paging.md b/Flutter/datagrid/paging.md
index 59f05de34..af73d963c 100644
--- a/Flutter/datagrid/paging.md
+++ b/Flutter/datagrid/paging.md
@@ -1,50 +1,31 @@
---
layout: post
-title: Paging in Flutter DataGrid | DataPager | Syncfusion
-description: Learn about the paging feature and how to customize its appearance in Syncfusion Flutter DataGrid (SfDataGrid) widget and more.
+title: Paging in Flutter DataGrid | Syncfusion®
+description: Learn how to use paging in Syncfusion® Flutter DataGrid, including page navigation, data management, and appearance customization options.
platform: flutter
control: SfDataGrid
documentation: ug
---
-# Paging in Flutter DataGrid (SfDataGrid)
+# Paging in Flutter DataGrid
-The SfDataGrid interactively supports the manipulation of data using the [SfDataPager](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager-class.html) control. This provides support to load data in segments when dealing with large volumes of data. The `SfDataPager` can be placed above or below the SfDataGrid based on your requirement to easily manage data paging.
+The Datagrid interactively supports the manipulation of data using the [SfDataPager](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager-class.html) control. This provides support to load data in segments when dealing with large volumes of data. The `SfDataPager` can be placed above or under based on the requirement to easily manage data paging.
-The SfDataGrid performs paging of data using the `SfDataPager`. To enable paging, follow these steps
+The Datagrid performs paging of data using the `SfDataPager`. To enable paging, follow this procedure
* Create a new `SfDataPager` widget, and set the [SfDataGrid.DataGridSource](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataGridSource-class.html) to the [SfDataPager.delegate](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/delegate.html) property.
-* Set the number of pages required to be displayed in the data pager by setting the [SfDataPager.pageCount](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/pageCount.html) property to a `double` value.
+* Set the number of pages required to be displayed in the data pager by setting the [SfDataPager.pageCount](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/pageCount.html) property.
* Set the number of buttons that should be displayed in view by setting the [SfDataPager.visibleItemsCount](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/visibleItemsCount.html) property.
-* Load the data for a specific page in the [handlePageChange](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataGridSource/handlePageChange.html) method. This method is called for every page navigation from the data pager. The method notifies listeners to refresh the UI.
+* Load the data for a specific page in the [handlePageChange](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataGridSource/handlePageChange.html) method. This method is called for every page navigation from the data pager.
-> **Note:**
->- The `SfDataPager.visibleItemsCount` property default value is 5.
->- Required imports - Ensure you have imported `syncfusion_flutter_datagrid`, `syncfusion_flutter_core`, and any data model classes. The `DataGridSource` is an abstract class that you must extend with your custom implementation.
+N> The `SfDataPager.visibleItemsCount` property default value is 5.
-The following code example illustrates using the `SfDataPager` with the SfDataGrid control:
+The following code example illustrates using the `SfDataPager` with the Datagrid control:
{% tabs %}
{% highlight Dart %}
import 'package:intl/intl.dart';
-import 'package:syncfusion_flutter_datagrid/datagrid.dart';
-import 'package:syncfusion_flutter_core/theme.dart';
-
-// Define OrderInfo model class
-class OrderInfo {
- OrderInfo({
- required this.orderID,
- required this.customerID,
- required this.orderDate,
- required this.freight,
- });
-
- final int orderID;
- final String customerID;
- final DateTime orderDate;
- final double freight;
-}
final int _rowsPerPage = 15;
final double _dataPagerHeight = 60.0;
@@ -64,7 +45,7 @@ class OrderInfo {
height: _dataPagerHeight,
child: SfDataPager(
delegate: _orderInfoDataSource,
- pageCount: (_orders.length / _rowsPerPage).ceil().toDouble(),
+ pageCount: _orders.length / _rowsPerPage,
direction: Axis.horizontal,
))
]);
@@ -117,9 +98,7 @@ class OrderInfo {
class OrderInfoDataSource extends DataGridSource {
OrderInfoDataSource() {
- _paginatedOrders = _orders.isNotEmpty
- ? _orders.getRange(0, _orders.length > _rowsPerPage ? _rowsPerPage : _orders.length).toList(growable: false)
- : [];
+ _paginatedOrders = _orders.getRange(0, 19).toList(growable: false);
buildPaginatedDataGridRows();
}
@@ -206,9 +185,9 @@ class OrderInfoDataSource extends DataGridSource {
## Callbacks
-The [SfDataPager](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager-class.html) provides the [onPageNavigationStart](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/onPageNavigationStart.html) and [onPageNavigationEnd](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/onPageNavigationEnd.html) callbacks to listen to page navigation at the widget level.
+The SfDataPager provides the [onPageNavigationStart](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/onPageNavigationStart.html) and [onPageNavigationEnd](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/onPageNavigationEnd.html) callbacks to listen to the page navigation at the widget level.
-Typically, these callbacks are used to show and hide a loading indicator during page transitions.
+Typically, these callbacks are used to show and hide the loading indicator.
{% tabs %}
{% highlight Dart %}
@@ -226,14 +205,14 @@ Typically, these callbacks are used to show and hide a loading indicator during
height: 60,
width: constraints.maxWidth,
child: SfDataPager(
- pageCount: (_orders.length / _rowsPerPage).ceil().toDouble(),
+ pageCount: _orders.length / _rowsPerPage,
direction: Axis.horizontal,
onPageNavigationStart: (int pageIndex) {
- // Customize this callback when page navigation begins
+ //You can do your customization
},
delegate: _orderInfoDataSource,
onPageNavigationEnd: (int pageIndex) {
- // Customize this callback when page navigation completes
+ //You can do your customization
}))
])
]);
@@ -245,18 +224,18 @@ Typically, these callbacks are used to show and hide a loading indicator during
## Asynchronous data loading
-You can load data asynchronously to the `SfDataPager` by overriding the [handlePageChange](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataGridSource/handlePageChange.html) method and awaiting the data fetch operation.
+You can load the data asynchronously to the `SfDataPager` by overriding the `handlePageChange` method and await the method while loading the data.
-Use the `onPageNavigationStart` and `onPageNavigationEnd` callbacks to show and hide a loading indicator when navigating between pages.
+You can use `onPageNavigationStart` and `onPageNavigationEnd` callbacks to show and hide the loading indicator when navigating between pages.
-In the below example, we simulate asynchronous data loading with a 2000ms delay and display the loading indicator during this time.
+In the below example, we have set await for 2000ms and displayed the loading indicator until 2000ms.
{% tabs %}
{% highlight Dart %}
import 'package:intl/intl.dart';
- bool showLoadingIndicator = false;
+ bool showLoadingIndicator = true;
@override
Widget build(BuildContext context) {
@@ -271,7 +250,7 @@ import 'package:intl/intl.dart';
height: 60,
width: constraints.maxWidth,
child: SfDataPager(
- pageCount: (_orders.length / _rowsPerPage).ceil().toDouble(),
+ pageCount: _orders.length / _rowsPerPage,
direction: Axis.horizontal,
onPageNavigationStart: (int pageIndex) {
setState(() {
@@ -316,9 +295,7 @@ import 'package:intl/intl.dart';
class OrderInfoDataSource extends DataGridSource {
OrderInfoDataSource() {
- _paginatedOrders = _orders.isNotEmpty
- ? _orders.getRange(0, _orders.length > _rowsPerPage ? _rowsPerPage : _orders.length).toList(growable: false)
- : [];
+ _paginatedOrders = _orders.getRange(0, 19).toList(growable: false);
buildPaginatedDataGridRows();
}
@@ -404,36 +381,25 @@ class OrderInfoDataSource extends DataGridSource {

-> **Note:** Download a complete demo application from [GitHub](https://github.com/SyncfusionExamples/how-to-show-loading-indicator-on-loading-page-in-flutter-datatable).
+>**NOTE**
+ Download demo application from [GitHub](https://github.com/SyncfusionExamples/how-to-show-loading-indicator-on-loading-page-in-flutter-datatable).
## Programmatic page navigation
-The `SfDataPager` provides support to navigate between pages programmatically using a [DataPagerController](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataPagerController-class.html) with the following methods:
+The `SfDataPager` provides the support to navigate between the pages programmatically using a [controller](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataGridController-class.html) with the following options.
-* [nextPage()](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataPagerController/nextPage.html) - Navigate to the next page
-* [previousPage()](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataPagerController/previousPage.html) - Navigate to the previous page
-* [lastPage()](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataPagerController/lastPage.html) - Navigate to the last page
-* [firstPage()](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataPagerController/firstPage.html) - Navigate to the first page
+* [nextPage](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataPagerController/nextPage.html)
+* [previousPage](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataPagerController/previousPage.html)
+* [LastPage](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataPagerController/lastPage.html)
+* [firstPage](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/DataPagerController/firstPage.html)
-The following code example shows how to navigate to the previous page programmatically:
+The following code example shows how to navigate the previous page programmatically,
{% tabs %}
{% highlight Dart %}
- late DataPagerController _controller;
-
- @override
- void initState() {
- super.initState();
- _controller = DataPagerController();
- }
-
- @override
- void dispose() {
- _controller.dispose();
- super.dispose();
- }
+ DataPagerController _controller = DataPagerController();
@override
Widget build(BuildContext context) {
@@ -443,7 +409,7 @@ The following code example shows how to navigate to the previous page programmat
onPressed: () {
_controller.previousPage();
},
- child: Text('Move to Previous Page'),
+ child: Text('Move Previous page'),
),
SizedBox(
height: constraint.maxHeight - 120,
@@ -457,7 +423,7 @@ The following code example shows how to navigate to the previous page programmat
delegate: _orderInfoDataSource,
initialPageIndex: 2,
controller: _controller,
- pageCount: (_orders.length / _rowsPerPage).ceil().toDouble(),
+ pageCount: _orders.length / _rowsPerPage,
direction: Axis.horizontal,
)))
]);
@@ -469,25 +435,20 @@ The following code example shows how to navigate to the previous page programmat
## Show dropdown button to choose rows per page
-Display a dropdown button option to select a different number of rows per page by defining the [onRowsPerPageChanged](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/onRowsPerPageChanged.html) callback. If it is null, no option will be provided to change the number of rows per page.
+Show the dropdown button option to select a different number of rows per page by defining the [onRowPerPageChanged](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/onRowsPerPageChanged.html) callback. If it is null, no option will be provided to select a different number of rows per page.
-Use the [availableRowsPerPage](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/availableRowsPerPage.html) property to define the list of row counts displayed in the dropdown. The default value is [10, 15, 20].
+Use the [availableRowsPerPage](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/availableRowsPerPage.html) property to define the list of numbers to be displayed in the drop-down. The default value of the `availableRowsPerPage` property is [10,15,20].
-> **Note:** You can view the dropdown button by horizontally scrolling the SfDataPager. The dropdown button option is not supported when the [direction](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/direction.html) property is set to vertical.
+>**NOTE**
+ You can view dropdown button option by horizontally scrolling the DataPager. The dropdown button option is not supported, if the [direction](https://pub.dev/documentation/syncfusion_flutter_datagrid/latest/datagrid/SfDataPager/direction.html) is vertical.
{% tabs %}
{% highlight Dart %}
- int _rowsPerPage = 10;
+ int _rowsPerPage=10;
List| -Value +Enum | Description |
|---|---|
| -Axis.horizontal +horizontal | -This is the default value. Arranges all navigation buttons and page number buttons horizontally.{{''|markdownify}} +This is the default enum value for direction. Arranges all the navigation buttons and numeric buttons horizontally.{{''|markdownify}} |
| -Axis.vertical +vertical | -Arranges all navigation buttons and page number buttons vertically.{{''|markdownify}} +Arranges all the navigation buttons and numeric buttons vertically by setting Axis.vertical to direction property.{{''|markdownify}} |