in
Forums
Blogs
DevExpress.com
Client Center
Support Center
DevExpress Channel

This Blog

Syndication

News

Email Subscriptions

The ASPx Blog - Mehul Harry's DevExpress Blog

[Besides this blog, you can also follow me on twitter at: twitter.com/mehulharry]

ASP.NET, DevExpress, ASP.NET MVC, WebForms, ASPxGridView, Controls and News - This is The ASPx Blog, Mehul Harry's work blog. I write about all the latest info on DevExpress ASP.NET news and bring you relevant developer content including: Screencasts, How-Tos, Videos, and new features/controls from Developer Express.

ASP.NET Dynamic Data and DevExpress Grid

DevExpress Dynamic Data VideoCheck out this 12 minute ASP.NET Dynamic Data video which shows you how to:

  • Create a basic Dynamic Data website
  • Add LINQ to SQL objects (using Northwind database tables)
  • Replace the Microsoft GridView with ASPxGridView
  • Use the DevExpress LINQ Server Mode DataSource
  • Use Master Pages and Styles

Sound complicated? Don't worry, it's easy and kind of fun. Just follow these 3 steps:

1. Download File

This zip file contains the necessary code files mentioned in the video.

Click here to download: [DXDynamicData.zip]

2. Watch the video

Watch the DevExpress Dynamic Data Support video.

3. Leave feedback here

What do you think of ASP.NET Dynamic Data? Drop me a line here and let me know.

Published Feb 01 2009, 10:41 PM by Mehul Harry (Developer Express)

Comments

 

Rory Becker [DX-Squad] said:

Very nice....Any chance of VB.Net versions of these files :) ?

February 2, 2009 6:49 AM
 

Rory Becker [DX-Squad] said:

Replacement FieldTemplates would also be very cool :)

February 2, 2009 6:50 AM
 

Mehul Harry (Developer Express) said:

Hey Rory,

Thanks and I'll look into getting a VB version for you.

February 2, 2009 1:33 PM
 

Scott Hunter said:

Mehul, this is GREAT stuff. Will blog about it next week!

February 3, 2009 3:41 PM
 

Clinton said:

Is there a vb.net version of the gridview

Thankyou.

February 5, 2009 3:46 AM
 

Mehul Harry (Developer Express) said:

Hi Bryan,

Thanks for the feedback. This release was just the first iteration. We plan to release an updated version which will include editor templates, dynamic validation, ...

I'll blog about it as soon as we it have it ready.

February 9, 2009 2:14 PM
 

Bryan Reynolds_1 said:

Sounds great.

February 10, 2009 12:54 AM
 

web development india said:

Thats gr8, really nice to know that.

February 25, 2009 4:42 AM
 

Claude Lavoie said:

Hello Harry,

sounds great explication into your video.

Perhaps, I improving some bugs when I'm trying to rebuild my site after the importation of thoses 2 files (ASPxDynamicGrisView.cs, DynamicLinqServerModeDataSources.cs) into App_Code folder. Since I'm using VB as my language into my VisualStudio.... he really doesnt like your c# files compiling with the designer.vb's file. Do you have any alternative to help me please

Best Regards

Claude

March 6, 2009 8:28 PM
 

Scott Hunter said:

One of the things that we worked on supporting in Dynamic Data is the ability for third party controls

March 10, 2009 4:50 AM
 

Jeremy said:

First... Great work and great video.

I really want to use this on a current project. However, I'm having trouble getting this to work on my end.

Getting a compile error:

"The name 'DynamicDataManager1' does not exist in the current context"

I see it defined in the .ASPX file but it's like the code behind of the page template is having trouble resolving it.

Steps I've completed:

1. I've successfully built the "vanilla" Northwind Dynamic Data site using a LINQ to SQL data model (working).

2. I've copied the two new class files (ASPxDynamicGridView.cs & DynamicLinqServerModeDataSource.cs) into my "App_Code" directory.

3. I've copied the four custom 'PageTemplate' files into the DynamicData\PageTemplates folder.

4. Added references to the 5 needed DevEx assemblies and set their "Copy Local" attribute to true so they appear in the project BIN folder.

5. I've updated the Global.asax file as outlined in the video

I'm using v8.3 of DevExpress controls. Am I missing something? Anyone else seeing this same issue when following the video directions and beginning from scratch?

- Jeremy

April 22, 2009 4:12 PM
 

Jeremy said:

OK - After a good night's rest and taking another look @ the problem I've identified the difference that was causing me issues... ASP.NET Project Types.

The sample relies on using an ASP.NET “Web Site” project template while I was taking the more traditional “ASP.NET Web Application” solution/project template approach. I was able to use the ASP.NET “Web Site” approach to follow the instructions in the video exactly and everything worked perfectly on the first try.

Now, for several valid reasons I need to work with “ASP.NET Web Application” projects and not ASP.NET “Website” projects. The thing that was preventing me from moving forward with the sample was that “ASP.NET Web Application” projects require .ASPX pages to have not only a “.ASPX.CS” code-behind file but also a “.ASPX.DESIGNER.CS” file as well… “ASP.NET Website” projects do not have this added .DESIGNER.CS file requirement.

I’ve manually recreated the ‘DevExList’ control in a separate project and have gotten all the issues resolved up to the point of trying to get the ‘ASPxDynamicGridView’ control visible in the design file… which is where I’m getting stuck.

Could someone there @ DevExpress run through this scenario and see if they can get it working for ‘ASP.NET Web Application’ project types?

April 23, 2009 2:32 PM
 

Jeremy said:

Hmmm... OK different issue. Does the 'ASPxDynamicGridView' control understand 'System.ComponentModel.DataAnnotations' markup? If not this is a dead-end for me.

i.e. - If I want to turn a column off using extended Metadata attributes? [ScaffoldColumn(false)] or define an alternate display name [DisplayName("Some Column Name Override")]

- Jeremy

April 23, 2009 2:57 PM
 

Mehul Harry (Developer Express) said:

Jeremy,

We haven't tested Dynamic Data web apps much, mostly just the web sites. Web apps probably require different template pages. In general though, the markup should remain the same.

To make the ScaffoldColumn attribute work, replace the ASPxDynamicGridView.AddDataColumns method with this one

void AddDataColumns(MetaTable meta) {

   foreach(MetaColumn column in meta.Columns) {

       if(!column.Scaffold)

           continue;

       AddDataColumn(column);

   }

}

(column.Scaffold check added)

The DisplayName attribute functions properly.

Thanks.

June 25, 2009 3:57 AM
 

Tristen Lopez said:

Have you had any progress on releasing a VB version?

Thanks!

August 21, 2009 2:49 PM
 

The ASPx Blog - Mehul Harry's DevExpress Blog said:

I have good news for Visual Basic developers interested in the DevExpress Dynamic Data Grid called the

September 14, 2009 5:58 PM

Leave a Comment

(required)  
(optional)
(required)  
Verification code: Required
   
Add

About Mehul Harry (Developer Express)

Mehul Harry is an ASP.NET technical evangelist at Developer Express. You can reach him directly at mharry@DevExpress.com. You can also follow him on Twitter: http://twitter.com/mehulharry
Copyright © 1998-2010 Developer Express Inc.
ALL RIGHTS RESERVED