Solved

Simple question about datagrids - populating 2 datagrids on a window

Posted on 2006-10-26
3
168 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
3 Comments
 
LVL 11

Accepted Solution

by:
anyoneis earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
c# if statement weird reaction 3 42
COnsume rest client 6 36
Word Directory is not in the drop down list 4 24
how to read json value 2 29
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now