?
Solved

Simple question about datagrids - populating 2 datagrids on a window

Posted on 2006-10-26
3
Medium Priority
?
172 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

741 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