DataSources and Data Binding

Published 15 May 07 12:30 PM

Today at DevTeach I packed the house with my ever popular "DataSources and Data Binding" talk. Last year was also a full room and as D'Arcy points out here, the other speakers this year should have hired a circus act to compete :-). That's the nature of data binding, it's a very popular topic because it's hard to write a Winforms application without using it. It was a pretty fast paced talk and I showed a lot of demos and hardly any PowerPoint (just the way I like them). I mentioned to the crowd that if they were beginners then they would want to check out my How-to videos on MSDN.

I started out with building a simple Winforms application from scratch with one form and one DataSet just to show how easy it is to use the designers in VS2005. However, the architect in me couldn't resist showing the new Orcas n-tier DataSet designer and the WCF service reference and type sharing option just like John showed in the Orcas Overview webcast a couple weeks ago. I also showed a tiny bit of LINQ just to show how much better the experience is when setting filtering and sorting on your objects.

The rest of the talk was all VS2005 and I showed all code and no designers from then on, explaining all of the features of the BindingSource and the interfaces related to data binding. I realize I went through a lot of information quickly (as pointed out by one attendee) but an hour and 15 minutes is a bit short for such a large topic and I was just to darn excited about it to leave anything out :-). If anybody wants to work through the examples, they're attached to this post.

As always, I'm really enjoying DevTeach. Now back to the great sessions!

Attachment(s):DataBinding.zip

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Sylvain Bujold said on May 15, 2007 9:08 PM:

It was an awesome session and it's not just the subject that packs the room it's your quality as a speaker! People, if you want to learn on data binding, go to her sessions cos she knows her stuff!

# Joseph Deng said on May 18, 2007 12:46 AM:

sorry I was n't in the session.. I'm new to VB and you video are really interesting and encouraging. Do you think I will learn this way or is there any book will you recommend

Thanks.

# kendell patrice said on May 18, 2007 2:53 PM:

isnt a single dataset instead of one for every operation easier to manage? especially when updating after changes to the database ?

maybe you can explain your technique.

i enjoyed your webcast

# Beth Massi said on May 19, 2007 11:06 AM:

Hi Kendell,

It depends on the type of application. If you are building a small client-server application for instance, having one big dataset can work. The issue is as the application needs to scale out to an n-tier design, you will want to break up the datasets into smaller entities so that serialization of your data will perform well.

-Beth

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

About Beth Massi

Beth is a Program Manager on the Visual Studio Community Team at Microsoft and is responsible for producing and managing content for business application developers, driving community features and team participation onto MSDN Developer Centers (http://msdn.com), and helping make Visual Studio one of the best developer tools in the world. She also produces regular content on her blog (http://blogs.msdn.com/bethmassi), Channel 9, and a variety of other developer sites and magazines. As a community champion and a long-time member of the Microsoft developer community she also helps with the San Francisco East Bay .NET user group and is a frequent speaker at various software development events. Before Microsoft, she was a Senior Architect at a health care software product company and a Microsoft Solutions Architect MVP. Over the last decade she has worked on distributed applications and frameworks, web and Windows-based applications using Microsoft development tools in a variety of businesses. She loves teaching, hiking, mountain biking, and driving really fast.

This Blog

Syndication

Page view tracker