Adding multple tables in ultragrid

Posted on 2007-07-20
Medium Priority
Last Modified: 2013-11-15
I am working on ultragrid in VB.net but I dont know how can I add the multiple table to single dataset, while those table dont have any relationship between them and also they have different no.s of columns
Finallty i need to bind the datase to the ultragrid and show all table in on ultragrid

Question by:shieldguy
  • 2
  • 2
LVL 17

Expert Comment

ID: 19530361
If the tables don't have a relationship with each other, then you won't be able to display all of them on a single ultragrid.  You can, however, bind different tables from the same dataset to multiple grids.  So if you have tables 1 and 2 in a dataset, you can display table 1 in ultragrid1, and table2 in ultragrid2.

Author Comment

ID: 19531129
Con you please provide a sample example of how can I bind different tables of same dataset with multiple ultragrids because I dont know how mant tables will be their on the dataset as I am creating it dynamically.
LVL 17

Accepted Solution

ZeonFlash earned 1000 total points
ID: 19532405
Assuming you have 3 datatables in a dataset:

            UltraGrid1.DataSource = DataSet1.Tables(0)
            UltraGrid2.DataSource = DataSet1.Tables(1)
            UltraGrid3.DataSource = DataSet1.Tables(2)

Author Comment

ID: 19545997
the problem the number of table in dataaset will change

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

609 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