Need to know the best and cleanest (most efficent way) to bind data to textboxes or other form controls in C#

This is so much simpler in FoxPro. I am trying to develop and understand the best way to edit and save data back to local tables and well as to SQL server (2008) using a form with textboxes, grids, etc.

Thanks again in advance! This will be a big help to me!

BC
busycoderAsked:
Who is Participating?
 
Olaf DoschkeSoftware DeveloperCommented:
You should begin on a more abstract and higher level than data binding, actually.
If you want to see fast results (in regard of development to a runnable form), perhaps take a look at some third party add-ons to VS. For example lately cocktail 1.0 was released by IdeaBlade: http://cocktail.ideablade.com/download/

It's a framework, it doesn't help you learning core DotNet, as it takes away low level tasks like loading and saving data from you, but it gets you faster forward developing an app. It's free and based on DevForce Express by the same company, also free. This just limits you to 10 entities (tables). But that should get you started and get a feeling of how development can be done, when advanced.
 
On the other side in parallel, approach DotNet by the book Pavel recommends. It's really nicely bringing you into DotNet step by step. It tells you what things compare to in VFP and what's new. It's outdated, as there is more to learn, but it's not outdated, as the basics still apply and are available and they are the basics to learn anyway. So it gives you a nice basis for learning more.

I can strongly recommend learning OOP concepts, if you haven't yet familarized with them in VFP already. And on top of that dig into the MVVM design pattern as a specific architecture of application layers for UI (View), application logic (ViewModel) and database/data access layer (Model). It's a concept recommended by MS for DotNet application development. It mainly is seperation of GUI and Data by a middle tier, which is not a new concept for OOP developers, but something you can't get around, as there is no direct binding of controls to table fields anyway, as in VFP.

The Cocktail framework applies this architecture, and so also in that respect it's good to learn from it.
0
 
pcelbaCommented:
I cannot say what is the cleanest way because it is still under development.

If you know FoxPro then you should read: http://foxcentral.net/microsoft/netforvfpdevelopers.htm

VB.NET is also similar to C#, so look also at this book: http://www.amazon.com/Visual-FoxPro-Basic-NET/dp/0672326493/ref=pd_sim_b_1/186-3083962-3577950
0
 
busycoderAuthor Commented:
I will dive in here :) thanks again all!!!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.