[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Collapse]Grid View
   [Expand]Product Information
    Getting Started
   [Expand]Fundamentals
   [Expand]Concepts
    Grid Designer
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]Member Tables
  [Expand]Tree List
  [Expand]Gantt
  [Expand]Card View
   Reporting
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Scheduler
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Gauges
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Grid View

The GridView control allows you to display data from a data source in grid. The grid displays data source fields and records as columns and rows in a table.

The ASPxGridView represents the GridView Control on the server side and the ASPxClientGridView represents it on the client side.

Expanded Features

Data Binding

The control works only in bound mode. You can bind the grid to any standard data source type: SqlDataSource, ObjectDataSource, XmlDataSource, AccessDataSource, and SiteMapDataSource.

Use the ASPxGridBase.KeyFieldName property to set a data source's key field name. The ASPxDataWebControl.DataSourceID and ASPxDataWebControlBase.DataSource specify the data source's ID and data source object.

Learn more (see ASPxGridView) | See demo

Database Server Mode

The grid supports database server mode. In this mode, the grid loads only required items to the server memory and implements data-aware operations (for example, filtering) at the database level.

Learn more (see ASPxGridView) | See demo

Unbound Columns

The grid control supports unbound columns that are not bound to any data source field. Use the ASPxGridView.CustomUnboundColumnData event or specify the GridViewDataColumn.UnboundExpression property to populate an unbound column with data.

Learn more (see ASPxGridView)

Columns Management

The grid control displays data in a table format. Data sources provide data as fields and records. The grid control displays data fields as columns and records - as data rows.

Learn more (see ASPxGridView)

Resize Columns

You can resize a column header to modify the column's width (ASPxGridView.SettingsResizing).

Learn more (see ASPxGridView) | See demo

Move Columns

The grid control supports drag-and-drop functionality that allows you to move a column to the desired position among other columns. You can use the ASPxGridViewBehaviorSettings.AllowDragDrop property to allow end users to move all grid columns or a column's Settings.AllowDragDrop property to enable drag and drop for an individual column.

Learn more (see ASPxGridView) | See demo

Header and Data Cell Bands

The grid control enables you to organize columns in logical groups (bands) and display them in multiple rows. Header bands (GridViewBandColumn) organize grid columns into logical groups and display hierarchical multi-row headers.

See demo

Data cell bands (GridViewColumn.Columns) allow you to display a data record hierarchically. Specify the GridViewDataColumn.CellRowSpan and GridViewCommandColumn.CellRowSpan properties to arrange a column header and data cells in a data cell band layout.

Learn more (see ASPxGridView) | See demo

Fixed Columns

The grid allows you to fix columns on the left side and display these columns onscreen when the columns' total width exceeds the grid width. Enable the horizontal scrolling (ASPxGridSettings.HorizontalScrollBarMode) and set a column's GridViewColumn.FixedStyle property to Left to fix the column.

Learn more (see ASPxGridView) | See demo

Truncate Cell Text

The grid can truncate cell ('...') values if they don't fit the cells width ( ASPxGridBehaviorSettings.AllowEllipsisInText).

See demo

Data Editing

Edit Modes

The grid provides the following built-in edit modes that allow end-users to edit grid data (ASPxGridViewEditingSettings.Mode):

Learn more (see ASPxGridView) | See demo

Edit Form Template

You can use any controls to create a custom layout for the edit form.

Learn more (see ASPxGridView) | See demo

Edit Form Layout

The ASPxGridView.EditFormLayoutProperties property allows you to customize the edit form layout.

See demo

Data Management

Sort Data

You can sort the grid data by an unlimited number of columns. Use a column's GridDataColumnSettings.AllowSort property or the grid's ASPxGridBehaviorSettings.AllowSort option to allow end users to sort the specified column or all columns in the grid.

Learn more (see ASPxGridView) | See demo

Filter Data

You can use the following UI elements to filter grid data:

Learn more (see ASPxGridView) | See demo

Group Data

The grid enables you to use drag-and-drop operations (ASPxGridViewSettings.ShowGroupPanel) or APIs to group data against an unlimited number of data columns. Use a column's GridViewDataColumnSettings.AllowGroup property or the grid's ASPxGridViewBehaviorSettings.AllowGroup option to allow end users to group the specified column or all columns in the grid.

See demo

Interval grouping (GridViewDataColumnSettings.GroupInterval) enables you to change the default grouping logic, especially for columns that contain date/time values.

See demo

The grid allows you to group grid data by multiple columns at once and combine them into a single grouping level (ASPxGridViewBehaviorSettings.MergeGroupsMode).

Learn more (see ASPxGridView) | See demo

Data Summary

The grid allows you to display brief information about groups of rows or individual data columns (summaries) in the footer (ASPxGridViewSettings.ShowFooter). The following summary types are available:

Learn more (see ASPxGridView)

Master-Detail Grid

The grid supports master-detail data. You can link a master table to multiple detail tables. Each detail table can be the master of another table.

Learn more (see ASPxGridView) | See demo

Validation

You can validate data in grid data rows and display error icons/messages for invalid fields.

Learn more (see ASPxGridView)

Export

The grid allows you to export data in the following formats: PDF, XLS, XLSX, RTF, CSV, DOCX.

Learn more (see ASPxGridView) | See demo

Merged Cells

The grid can automatically merge adjacent cells with the same values (ASPxGridViewBehaviorSettings.AllowCellMerge, GridViewDataColumnSettings.AllowCellMerge).

Learn more (see ASPxGridView) | See demo

Selection

You can use the UI elements (ASPxGridViewBehaviorSettings.AllowSelectByRowClick, GridViewCommandColumn.ShowSelectCheckbox, GridViewCommandColumn.ShowSelectButton, GridViewCommandColumn.SelectAllCheckboxMode) or APIs on the client and server side to select grid data.

Learn more (see ASPxGridView) | See demo

Buil-In Pager

The grid provides the built-in pager (ASPxGridView.SettingsPager) that enables end-users to navigate through data. The pager consists of navigation buttons: "next", "last", "previous", "first", "All";

See demo

Set the ASPxGridViewPagerSettings.Mode property to EndlessPaging to enable endless paging mode that enables you to load grid rows on demand when an end user scrolls the grid.

Learn more (see ASPxGridView) | See demo

Scroll Data

Use the ASPxGridSettings.HorizontalScrollBarMode and ASPxGridSettings.VerticalScrollBarMode properties to enable the horizontal and vertical scroll bars.

See demo

The grid supports virtual paging mode (ASPxGridViewSettings.VerticalScrollBarStyle) that allows end-users to use the vertical scroll bar to navigate through grid pages.

Learn more (see ASPxGridView) | See demo

Keyboard Navigation

The built-in keyboard support allows you to use the keyboard to navigate the grid (ASPxGridView.KeyboardSupport).

Learn more (see ASPxGridView) | See demo

Rows Management

Alternate Row

You can highlight alternating (odd) grid rows with a different style (GridViewAlternatingRowStyle.Enabled).

See demo

Preview Row

A preview row displays large memo fields or custom data across all grid columns (ASPxGridViewSettings.ShowPreview, ASPxGridView.PreviewFieldName).

Learn more (see ASPxGridView) | See demo

Grid Lines

The grid allows you to display the horizontal and/or vertical grid lines (ASPxGridViewSettings.GridLines).

Learn more (see ASPxGridView) | See demo

Focused Row

You can focus a row in the grid. Note that you can select several records simultaneously but you can focus only one record at a time.

Learn more (see ASPxGridView) | See demo | Learn more

Customization Tools

Toolbar

The toolbar enables you to group grid commands. The grid stores toolbars (GridViewToolbar) in its ASPxGridView.Toolbars collection. You can add or remove toolbars, change their availability and position, and populate them with toolbar items (GridViewToolbarItem).

Learn more (see ASPxGridView) | See demo

Customization Dialog

The customization dialog enables users to sort, group, filter, and hide/show columns in the grid on mobile devices.

Learn more (see ASPxGridView) | See demo

Context Menu

The grid provides the following context menu types (ASPxGridViewContextMenuSettings.Enabled):

Learn more (see ASPxGridView) | See demo

Column Chooser

The column chooser allows users to use drag and drop to show/hide columns in the grid (ASPxGridViewBehaviorSettings.EnableCustomizationWindow)

Learn more (see ASPxGridView) | See demo

Adaptivity

The grid allows you to build adaptive or responsive page layouts. The control can automatically resize or hide its elements when the browser window is resized (ASPxGridView.SettingsAdaptivity).

Learn more (see ASPxGridView) | See demo

Appearance Customization

Templates

The grid supports templates and allows you to customize its UI elements' appearance and layout.

Learn more (see ASPxGridView) | See demo

Conditional Formatting

You can apply format rules (the GridFormatConditionBase object descendants) to the grid (ASPxGridView.FormatConditions) to customize the appearance of the grid's data.

Learn more (see ASPxGridView) | See demo

Miscellaneous

Cookies Support

The grid supports cookies that allow your site's visitors to personalize pages. If cookies are enabled, the browser saves grid options that can be restored in future sessions.

Save and Restore Layout

You can save the grid's layout to a database and then restore it.

Learn more (see ASPxGridView)

Expanded START HERE

Expanded LEARN MORE

Expanded HOW TO

Expanded See Also

Is this topic helpful?​​​​​​​