Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Simple question about datagrids - populating 2 datagrids on a window

Posted on 2006-10-26
3
Medium Priority
?
173 Views
Last Modified: 2010-04-16
I am having a problem populating 2 datagrids on the same window.   I am trying to display data in two datagrids that have the same column mapping names but come from different datasets.   I am getting the same results in both datagrids.  For some reason, when I bind the second datagrid (dgb) it also replaces contents of first datagrid (dgEquipment).  Is this because both datasets have the same table mapping names (tblEquipmentInventory)?  is there any way around this?

expression = "A";
this.ds = this.bizObj.FilterByScenario(this.dsCustomer, this.lbscenario.Text.ToString(), nchCustomerID.ToString(), expression);
this.dgEquipment.SetDataBinding(this.ds, "tblEquipmentInventory");
      
this.dsFilter = this.bizObj.FilterByScenario(this.dsCustomer, this.lbscenario.Text.ToString(), nchCustomerID.ToString(), expression);
 this.dgb.SetDataBinding(this.dsFilter, "tblEquipmentInventory");
0
Comment
Question by:Hojoformo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
anyoneis earned 2000 total points
ID: 17817440
No, it doesn't work that way. So there mus tbe some other error. You haven't provided enough information to see the problem. For example, it looks like both of the statements above refer to this.dsCustomer. That's one dataset, not two.

David
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question