Entity Framework Demo

This sample illustrates implementing ADO.NET Entity Framework support in the GridGroupingControl.

Below is an image of a GridGroupingControl Entity Framework.

GGC Entity Framework

Entity Framework.

Features

Interactive Features

The following code illustrates binding a datasource to theGridGroupingControlthrough an Entity Data Model.

                //Creates an object for entity connection.
                EntityConnection con = new EntityConnection("name=NorthwindGridEntities");

                con.StoreConnection.ConnectionString = "Data Source=" + FindFile("NorthwindwithImage.sdf");
                NorthwindGridEntities db = new NorthwindGridEntities(con);

                //Bind the datasource to GridGroupingControl.    
                this.gridGroupingControl1.DataSource = db.Customers;

Note:

To run the Entity Framework_2008 project file, you must have the following installed:

To run the Entity Framework_2010 project file, you must have the following installed: