Solved

Simple question about datagrids - populating 2 datagrids on a window

Posted on 2006-10-26
3
167 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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

9 Experts available now in Live!

Get 1:1 Help Now