How to Remove Columns From Your DynamicData Data Grids

Please install Silverlight or click download to watch video locally.

In this video you'll see how to take advantage of full column scaffolding but still exclude table columns that you don't want to appear in your user interface.

Presented by Joe Stagner

Duration: 5 minutes, 40 seconds

Date: 11 December 2008

Watch    Video   |   Download    Video   |   VB Code    C# Code

Video downloads: WMV  |  Zune  |  iPod  |  PSP  |  MPEG-4  |  3GP

Audio downloads: AAC  |  WMA  |  MPEG-4  |  MPEG-3  |  MPEG-2

Comments : 5

Leave a Comment

mjta : On December 22, 2008 12:37 PM said:

Joe...good stuff...can we get a video showing how to access specific records from a database for the Logged In User that uses the ASP.NET Membership Provider?

Gatepark : On February 19, 2009 4:51 AM said:

Hi Joe

A great series of videos.

I want to hide a field in my table. Its a FK to its parent. However when I hide it as you have shown in this video it seems that it is still translating the FK into the parent name and includes it on the edit screen for the child record. How do I stop this happening? Any ideas/suggestions welcome.

the_N_Channel : On July 09, 2009 8:14 AM said:

I know it's a minor point, but Joe keeps repeating "DataGrid" a lot throughout this video. Based on the other videos, these templates are all driven by Gridviews, which are the ASP.NET 2.0 update to the old school DataGrid (for what I understand), and it may be slightly confusing for a newcomer who hasn't taken note. So, if I understand correctly, Don't use DataGrid (deprecated), use Gridview. (http://msdn.microsoft.com/en-us/magazine/cc163933.aspx)

jasonh70 : On August 13, 2009 4:45 PM said:

Hey, great video. But I've tried using the exact same code (my table's called Products too) and it doesn't work for me. Do I need to do anything different if im using SQL server?

ToughBond : On October 30, 2009 11:06 PM said:

Is there a way to restrict the display of a colummn without removing it completely from the scaffolding? What if that field is something that doesnt need to appear in the gridview but would be needed in the record view?

Great video by the way.

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities