Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Collapse]Data Grid
   [Expand]Getting Started
   [Collapse]Binding to Data
    [Expand]Server Mode
     Grid Control Binding Specifics
     Posting Data to a Connected Database
     Unbound Columns
     Binding to Entity Framework Models
     Binding via Data Source Configuration Wizard
     Fluent API Support
     Member Table: Data Binding
     Tutorial: ADO.NET Data
     Tutorial: Create and Manage Columns at Design Time
     Tutorial: Create and Manage Data in Code and Apply Data Annotation Attributes
     Tutorial: Entity Framework Data
     Tutorial: Unbound Columns
     Tutorial: Working with Columns in Code
   [Expand]Grid View
   [Expand]View Technology
   [Expand]Grouping
   [Expand]Sorting
   [Expand]Summaries
   [Expand]Data Editing
   [Expand]Filtering and Locating Rows
   [Expand]Focus and Selection Handling
   [Expand]Processing Rows
   [Expand]Formatting Cell Values
   [Expand]Master-Detail Relationships
   [Expand]Asynchronous Image Load
   [Expand]Export and Printing
   [Expand]Appearance and Conditional Formatting
   [Expand]Batch Modifications
   [Expand]Hit Information
   [Expand]Hints
   [Expand]Popup Menus
   [Expand]Saving and Restoring Layouts
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End-User Capabilities
    Included Components
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Binding to Data

The Data Grid is a data-aware control, which means that the control needs to be bound to a data source using the GridControl.DataSource (and optionally GridControl.DataMember) property. This section provides information on data binding approaches, shows how to create unbound (calculated) columns, and covers points that are specific to the Data Grid.

 

Expanded Tutorials

  • Data Source Configuration Wizard
    This tutorial walks you through our Data Source Configuration Wizard - an easier way of connecting your controls to a number of different databases.
    Watch the Video | Read the Overview

  • ADO.NET Data
    This tutorial illustrates how to bind your Data Grid to data using the traditional ADO.NET mechanism.
    Watch the Video | Read the Walkthrough

  • Create & Manage Columns at Design Time
    In this tutorial, you will learn what columns are created by the grid automatically when it's bound to a data source, how to use the grid’s integrated designer to manage the column collection, and how to bind columns to data fields.
    Watch the Video | Read the Walkthrough

  • Unbound Columns
    In this tutorial, you will learn how to add columns whose values are not stored in the data source and are calculated using a pre-defined expression or are specified by an event handler.
    Watch the Video | Read the Walkthrough

  • Create & Manage Data in Code and Apply Data Annotation Attributes
    In this tutorial, you will learn how to create a data source for your grid control in code. You will also see how to apply data attributes to make the grid apply appropriate editing modes, cell editors and input validation rules.
    Watch the Video | Read the Walkthrough

  • Entity Framework Data
    This tutorial shows you how to bind the Data Grid to EF data.
    Watch the Video | Read the Walkthrough

  • Large Data Sources & Instant Feedback with Server Mode
    This tutorial first describes the disadvantages of the standard data binding mode when handling very large data sources. You will learn how to use Server Mode data binding to address initial data loading and data manipulation performance. Finally, the tutorial will demonstrate the Instant Feedback data binding mode that ensures that your application's UI never freezes by performing data-related operations in a background thread.
    Watch the Video | Read the Walkthrough

  • Working with Columns In Code
    In this tutorial, you will learn how to enable or disable automatic column generation when assigning a data source, how to manually populate the column collection and access individual columns. This tutorial focuses on accomplishing these tasks in code.
    Watch the Video | Read the Walkthrough

Expanded More Online Tutorials

Expanded General Concepts

Expanded Grid Control Specifics

Expanded Member Table

Expanded Task-Based Help

Expanded See Also

How would you rate this topic?​​​​​​​