Visual Studio Development Bookmark and Share   
 index > Visual Studio WPF Designer > Binding same Datatable to different grids
 

Binding same Datatable to different grids

Hi,

Here is what I want to achieve.

I have a datatable returned from a query.
I have 3 grids on window.
The 3 grids have to show the data from the same source data table but with a different Select criteria for each of them.
(I run the query only once and then I perform "Select" on DataTable for each of the grid).

Now the user can add rows into any of these grids (by invoking a popup window through a context menu, enter new data and click OK).

What is the best way so that
1. I can keep only one DataTable as my main source of data.
2. Grids show the data from same source but with different select clause.
3. Users can add new records to the grids (as a result the main datatable should also have a new row).

I am open to any solution even without DataTable. Just want to keep the main source collection synchronized from the smaller collections.

Please suggest what should I do.

Thanks.

AM


microbian  Monday, August 31, 2009 8:17 PM
AM,

Please repost your question in the WPF forum.

http://social.msdn.microsoft.com/forums/en-US/wpf/threads/

Cheers, Karl - Microsoft Product Team, Code Project MVP - http://karlshifflett.wordpress.com/
karl140.6  Tuesday, September 01, 2009 3:01 PM

You can use google to search for other answers

Custom Search

More Threads

• Autoresizing Richtextbox in WPF when Window is Maximized or restored
• Designing UserControl That Inherits From an Abstract Class
• Components in CIDER
• How to paint Serial Picture Files Real time?
• Insert CDATA tags and xml:space attribute into XAML
• Include (*.SWF) in C# Project
• how to using WPF and OpenCV in a same project?
• vista dev/cider labs
• WPF Custom Control: To Show up description for a property of the control in PropertyGrid
• Visual Studio 2008 SP1 Xaml Designer Bug?