This demo illustrates the Grid View control's vertical scrolling capability.
By default, the grid height is determined by the number of rows displayed within a page. To reduce the grid's height, display the vertical scrollbar using the Settings.VerticalScrollBarMode property, and specify the height of the scrollable area (in pixels) using the Settings.VerticalScrollableHeight property.
The Settings.VerticalScrollBarMode property accepts the following values:
- Auto - The scrollbar is automatically shown when the size of the control content exceeds the size of the control itself.
- Hidden - The scrollbar is hidden.
- Visible - The scrollbar is visible.
| | | | | | | |
10248 | VINET | Buchanan | 7/4/2014 | 32 | Vins et alcools Chevalier | Reims | France |
10249 | TOMSP | Suyama | 7/5/2014 | 12 | Toms Spezialitäten | Münster | Germany |
10250 | HANAR | Peacock | 7/8/2014 | 66 | Hanari Carnes | Rio de Janeiro | Brazil |
10251 | VICTE | Leverling | 7/8/2014 | 41 | Victuailles en stock | Lyon | France |
10252 | SUPRD | Peacock | 7/9/2014 | 51 | Suprêmes délices | Charleroi | Belgium |
10253 | HANAR | Leverling | 7/10/2014 | 58 | Hanari Carnes | Rio de Janeiro | Brazil |
10254 | CHOPS | Buchanan | 7/11/2014 | 23 | Chop-suey Chinese | Bern | Switzerland |
10255 | RICSU | Dodsworth | 7/12/2014 | 148 | Richter Supermarkt | Genève | Switzerland |
10256 | WELLI | Leverling | 7/15/2014 | 14 | Wellington Importadora | Resende | Brazil |
10257 | HILAA | Peacock | 7/16/2014 | 82 | HILARION-Abastos | San Cristóbal | Venezuela |
10258 | ERNSH | Davolio | 7/17/2014 | 141 | Ernst Handel | Graz | Austria |
10259 | CENTC | Peacock | 7/18/2014 | 3 | Centro comercial Moctezuma | México D.F. | Mexico |
10260 | OTTIK | Peacock | 7/19/2014 | 55 | Ottilies Käseladen | Köln | Germany |
10261 | QUEDE | Peacock | 7/19/2014 | 3 | Que Delícia | Rio de Janeiro | Brazil |
10262 | RATTC | Callahan | 7/22/2014 | 48 | Rattlesnake Canyon Grocery | Albuquerque | USA |
10263 | ERNSH | Dodsworth | 7/23/2014 | 146 | Ernst Handel | Graz | Austria |
10264 | FOLKO | Suyama | 7/24/2014 | 4 | Folk och fä HB | Bräcke | Sweden |
10265 | BLONP | Fuller | 7/25/2014 | 55 | Blondel père et fils | Strasbourg | France |
10266 | WARTH | Leverling | 7/26/2014 | 26 | Wartian Herkku | Oulu | Finland |
10267 | FRANK | Peacock | 7/29/2014 | 209 | Frankenversand | München | Germany |
<dx:BootstrapGridView runat="server" AutoGenerateColumns="False" Width="100%"
DataSourceID="OrdersDataSource" KeyFieldName="OrderID">
<Settings VerticalScrollableHeight="300" VerticalScrollBarMode="Auto" />
<Columns>
<dx:BootstrapGridViewTextColumn FieldName="OrderID" Width="80" />
<dx:BootstrapGridViewTextColumn FieldName="CustomerID" />
<dx:BootstrapGridViewComboBoxColumn FieldName="EmployeeID" Caption="Employee">
<PropertiesComboBox DataSourceID="EmployeesDataSource" ValueType="System.Int32" ValueField="EmployeeID" TextField="LastName" />
</dx:BootstrapGridViewComboBoxColumn>
<dx:BootstrapGridViewDateColumn FieldName="OrderDate" Width="100" />
<dx:BootstrapGridViewTextColumn FieldName="Freight" Width="80" />
<dx:BootstrapGridViewTextColumn FieldName="ShipName" />
<dx:BootstrapGridViewTextColumn FieldName="ShipCity" />
<dx:BootstrapGridViewTextColumn FieldName="ShipCountry" />
</Columns>
<SettingsPager PageSize="20" NumericButtonCount="6">
<Summary Visible="false" />
<PageSizeItemSettings Visible="true" ShowAllItem="true" />
</SettingsPager>
</dx:BootstrapGridView>
This demo illustrates the Grid View control's horizontal scrolling capability.
Use the Settings.HorizontalScrollBarMode property to specify the horizontal scrollbar's display mode. This property accepts the following values:
- Auto - The scrollbar is automatically shown when the size of the control content exceeds the size of the control itself.
- Hidden - The scrollbar is hidden.
- Visible - The scrollbar is visible.
| | | | | | | | | | | | |
10248 | VINET | Buchanan | 7/4/2014 | 8/1/2014 | 7/16/2014 | 32 | Vins et alcools Chevalier | Reims | | 51100 | France |
10249 | TOMSP | Suyama | 7/5/2014 | 8/16/2014 | 7/10/2014 | 12 | Toms Spezialitäten | Münster | | 44087 | Germany |
10250 | HANAR | Peacock | 7/8/2014 | 8/5/2014 | 7/12/2014 | 66 | Hanari Carnes | Rio de Janeiro | RJ | 05454-876 | Brazil |
10251 | VICTE | Leverling | 7/8/2014 | 8/5/2014 | 7/15/2014 | 41 | Victuailles en stock | Lyon | | 69004 | France |
10252 | SUPRD | Peacock | 7/9/2014 | 8/6/2014 | 7/11/2014 | 51 | Suprêmes délices | Charleroi | | B-6000 | Belgium |
10253 | HANAR | Leverling | 7/10/2014 | 7/24/2014 | 7/16/2014 | 58 | Hanari Carnes | Rio de Janeiro | RJ | 05454-876 | Brazil |
<dx:BootstrapGridView runat="server" AutoGenerateColumns="False" Width="100%"
DataSourceID="OrdersDataSource" KeyFieldName="OrderID">
<Settings HorizontalScrollBarMode="Auto" />
<Columns>
<dx:BootstrapGridViewTextColumn FieldName="OrderID" Width="90" />
<dx:BootstrapGridViewTextColumn FieldName="CustomerID" Width="120" />
<dx:BootstrapGridViewComboBoxColumn FieldName="EmployeeID" Caption="Employee" Width="120">
<PropertiesComboBox DataSourceID="EmployeesDataSource" ValueType="System.Int32" ValueField="EmployeeID" TextField="LastName" />
</dx:BootstrapGridViewComboBoxColumn>
<dx:BootstrapGridViewDateColumn FieldName="OrderDate" Width="100" />
<dx:BootstrapGridViewDateColumn FieldName="RequiredDate" Width="130" />
<dx:BootstrapGridViewDateColumn FieldName="ShippedDate" Width="120" />
<dx:BootstrapGridViewTextColumn FieldName="Freight" Width="90" />
<dx:BootstrapGridViewTextColumn FieldName="ShipName" Width="200" />
<dx:BootstrapGridViewTextColumn FieldName="ShipCity" Width="100" />
<dx:BootstrapGridViewTextColumn FieldName="ShipRegion" Width="120" />
<dx:BootstrapGridViewTextColumn FieldName="ShipPostalCode" Width="140" />
<dx:BootstrapGridViewTextColumn FieldName="ShipCountry" Width="120" />
</Columns>
<SettingsPager PageSize="6" NumericButtonCount="6" />
</dx:BootstrapGridView>
The Grid View control supports a virtual paging mode that allows end-users to navigate through grid pages using the vertical scroll bar. The vertical scroll bar can be used with or without the built-in pager to dynamically load requested page data using callbacks.
Use the Settings.VerticalScrollBarStyle property to activate virtual paging. This property allows the following values:
- Standard - The vertical scrollbar operates in the standard way; it scrolls data rows displayed within the current page.
- Virtual - Enables the virtual paging mode. End-users can navigate through data rows using the vertical scrollbar. When a scroll button is clicked, the Grid View switches to the next/previous page.
- VirtualSmooth - Enables the virtual paging mode. End-users can navigate through data rows using the vertical scrollbar. When a scroll button is clicked, the Grid View smoothly scrolls data.
In this demo, the Settings.VerticalScrollBarStyle property is set to VirtualSmooth.
| | | | | | | |
10248 | VINET | Buchanan | 7/4/2014 | 32 | Vins et alcools Chevalier | Reims | France |
10249 | TOMSP | Suyama | 7/5/2014 | 12 | Toms Spezialitäten | Münster | Germany |
10250 | HANAR | Peacock | 7/8/2014 | 66 | Hanari Carnes | Rio de Janeiro | Brazil |
10251 | VICTE | Leverling | 7/8/2014 | 41 | Victuailles en stock | Lyon | France |
10252 | SUPRD | Peacock | 7/9/2014 | 51 | Suprêmes délices | Charleroi | Belgium |
10253 | HANAR | Leverling | 7/10/2014 | 58 | Hanari Carnes | Rio de Janeiro | Brazil |
10254 | CHOPS | Buchanan | 7/11/2014 | 23 | Chop-suey Chinese | Bern | Switzerland |
10255 | RICSU | Dodsworth | 7/12/2014 | 148 | Richter Supermarkt | Genève | Switzerland |
10256 | WELLI | Leverling | 7/15/2014 | 14 | Wellington Importadora | Resende | Brazil |
10257 | HILAA | Peacock | 7/16/2014 | 82 | HILARION-Abastos | San Cristóbal | Venezuela |
10258 | ERNSH | Davolio | 7/17/2014 | 141 | Ernst Handel | Graz | Austria |
10259 | CENTC | Peacock | 7/18/2014 | 3 | Centro comercial Moctezuma | México D.F. | Mexico |
10260 | OTTIK | Peacock | 7/19/2014 | 55 | Ottilies Käseladen | Köln | Germany |
10261 | QUEDE | Peacock | 7/19/2014 | 3 | Que Delícia | Rio de Janeiro | Brazil |
10262 | RATTC | Callahan | 7/22/2014 | 48 | Rattlesnake Canyon Grocery | Albuquerque | USA |
10263 | ERNSH | Dodsworth | 7/23/2014 | 146 | Ernst Handel | Graz | Austria |
10264 | FOLKO | Suyama | 7/24/2014 | 4 | Folk och fä HB | Bräcke | Sweden |
10265 | BLONP | Fuller | 7/25/2014 | 55 | Blondel père et fils | Strasbourg | France |
10266 | WARTH | Leverling | 7/26/2014 | 26 | Wartian Herkku | Oulu | Finland |
10267 | FRANK | Peacock | 7/29/2014 | 209 | Frankenversand | München | Germany |
10268 | GROSR | Callahan | 7/30/2014 | 66 | GROSELLA-Restaurante | Caracas | Venezuela |
10269 | WHITC | Buchanan | 7/31/2014 | 5 | White Clover Markets | Seattle | USA |
10270 | WARTH | Davolio | 8/1/2014 | 137 | Wartian Herkku | Oulu | Finland |
10271 | SPLIR | Suyama | 8/1/2014 | 5 | Split Rail Beer & Ale | Lander | USA |
10272 | RATTC | Suyama | 8/2/2014 | 98 | Rattlesnake Canyon Grocery | Albuquerque | USA |
10273 | QUICK | Leverling | 8/5/2014 | 76 | QUICK-Stop | Cunewalde | Germany |
10274 | VINET | Suyama | 8/6/2014 | 6 | Vins et alcools Chevalier | Reims | France |
10275 | MAGAA | Davolio | 8/7/2014 | 27 | Magazzini Alimentari Riuniti | Bergamo | Italy |
10276 | TORTU | Callahan | 8/8/2014 | 14 | Tortuga Restaurante | México D.F. | Mexico |
10277 | MORGK | Fuller | 8/9/2014 | 126 | Morgenstern Gesundkost | Leipzig | Germany |
<dx:BootstrapGridView runat="server" AutoGenerateColumns="False" Width="100%"
DataSourceID="OrdersDataSource">
<Settings VerticalScrollBarMode="Visible" VerticalScrollBarStyle="VirtualSmooth" />
<Columns>
<dx:BootstrapGridViewTextColumn FieldName="OrderID" Width="80" />
<dx:BootstrapGridViewTextColumn FieldName="CustomerID" />
<dx:BootstrapGridViewComboBoxColumn FieldName="EmployeeID" Caption="Employee">
<PropertiesComboBox DataSourceID="EmployeesDataSource" ValueType="System.Int32" ValueField="EmployeeID" TextField="LastName" />
</dx:BootstrapGridViewComboBoxColumn>
<dx:BootstrapGridViewDateColumn FieldName="OrderDate" Width="100" />
<dx:BootstrapGridViewTextColumn FieldName="Freight" Width="80" />
<dx:BootstrapGridViewTextColumn FieldName="ShipName" />
<dx:BootstrapGridViewTextColumn FieldName="ShipCity" />
<dx:BootstrapGridViewTextColumn FieldName="ShipCountry" />
</Columns>
<SettingsPager PageSize="20" NumericButtonCount="6" />
</dx:BootstrapGridView>
Fixed Columns
The Grid View control allows you to anchor columns to the left edge. When fixed, columns are always displayed, and not scrolled horizontally with the grid. This feature is active when horizontal scrolling is enabled via the Settings.HorizontalScrollBarMode property, and the total width of the columns exceeds the grid's width. To fix a column, set its Fixed property value to true. Non-fixed columns (whose Fixed property is set to false) cannot be positioned before fixed columns.
Fixed columns support complex layout scenarios that utilize such features as grouping, detail rows, preview rows and row templates. This demo illustrates the use of fixed columns within a grouped grid.
| | | | | | | | | |
| | | | | | | |
| Country: Argentina |
| Patricio Simpson | Cactus Comidas para llevar | Buenos Aires | | Cerrito 333 | 1010 | (1) 135-5555 | (1) 135-4892 |
| Yvonne Moncada | Océano Atlántico Ltda. | Buenos Aires | | Ing. Gustavo Moncada 8585 Piso 20-A | 1010 | (1) 135-5333 | (1) 135-5535 |
| Sergio Gutiérrez | Rancho grande | Buenos Aires | | Av. del Libertador 900 | 1010 | (1) 123-5555 | (1) 123-5556 |
| Country: Austria (Continued on the next page) |
| Roland Mendel | Ernst Handel | Graz | | Kirchgasse 6 | 8010 | 7675-3425 | 7675-3426 |
<dx:BootstrapGridView runat="server" Width="100%"
DataSourceID="CustomersDataSource" KeyFieldName="CustomerID">
<Settings HorizontalScrollBarMode="Auto" />
<CssClasses FixedColumn="bg-light text-body" />
<Columns>
<dx:BootstrapGridViewDataColumn FieldName="ContactName" Width="200" Fixed="true" />
<dx:BootstrapGridViewDataColumn FieldName="CompanyName" Width="250" Fixed="true" />
<dx:BootstrapGridViewDataColumn FieldName="City" Width="130" />
<dx:BootstrapGridViewDataColumn FieldName="Region" Width="100" />
<dx:BootstrapGridViewDataColumn FieldName="Country" GroupIndex="1" />
<dx:BootstrapGridViewDataColumn FieldName="Address" Width="320" />
<dx:BootstrapGridViewDataColumn FieldName="PostalCode" Width="150" />
<dx:BootstrapGridViewDataColumn FieldName="Phone" Width="160" />
<dx:BootstrapGridViewDataColumn FieldName="Fax" Width="160" />
</Columns>
<SettingsBehavior AutoExpandAllGroups="true" />
<SettingsPager PageSize="6" NumericButtonCount="6" />
</dx:BootstrapGridView>
Endless Paging
The Grid View control supports the endless paging mode. This mode allows grid rows to load on demand. To enable this functionality, set the SettingsPager.Mode property to EndlessPaging. In this mode, the grid loads more rows automatically when the end-user scrolls down to the bottom of the control.
Use the Settings.VerticalScrollableHeight property to specify the scrollable area's height.
The Settings.VerticalScrollBarMode property specifies the vertical scrollbar's display mode. This property accepts the following values:
- Auto - The scrollbar is automatically shown when the size of the control content exceeds the size of the control itself.
- Hidden - The scrollbar is hidden.
- Visible - The scrollbar is visible.
Drag a column header here to group by that column
| | | | | | |
Vins et alcools Chevalier | Reims | 51100 | France | 32 | 7/4/2014 | 7/16/2014 |
Toms Spezialitäten | Münster | 44087 | Germany | 12 | 7/5/2014 | 7/10/2014 |
Hanari Carnes | Rio de Janeiro | 05454-876 | Brazil | 66 | 7/8/2014 | 7/12/2014 |
Victuailles en stock | Lyon | 69004 | France | 41 | 7/8/2014 | 7/15/2014 |
Suprêmes délices | Charleroi | B-6000 | Belgium | 51 | 7/9/2014 | 7/11/2014 |
Hanari Carnes | Rio de Janeiro | 05454-876 | Brazil | 58 | 7/10/2014 | 7/16/2014 |
Chop-suey Chinese | Bern | 3012 | Switzerland | 23 | 7/11/2014 | 7/23/2014 |
Richter Supermarkt | Genève | 1204 | Switzerland | 148 | 7/12/2014 | 7/15/2014 |
Wellington Importadora | Resende | 08737-363 | Brazil | 14 | 7/15/2014 | 7/17/2014 |
HILARION-Abastos | San Cristóbal | 5022 | Venezuela | 82 | 7/16/2014 | 7/22/2014 |
<dx:BootstrapGridView runat="server" DataSourceID="OrdersDataSource" Width="100%" KeyFieldName="OrderID">
<Settings ShowGroupPanel="true" VerticalScrollBarMode="Visible" VerticalScrollableHeight="300" />
<SettingsPager Mode="EndlessPaging" PageSize="10" />
<Columns>
<dx:BootstrapGridViewTextColumn FieldName="ShipName" Width="200" />
<dx:BootstrapGridViewTextColumn FieldName="ShipCity" />
<dx:BootstrapGridViewTextColumn FieldName="ShipPostalCode" />
<dx:BootstrapGridViewTextColumn FieldName="ShipCountry" />
<dx:BootstrapGridViewTextColumn FieldName="Freight" />
<dx:BootstrapGridViewDateColumn FieldName="OrderDate" />
<dx:BootstrapGridViewDateColumn FieldName="ShippedDate" />
</Columns>
</dx:BootstrapGridView>