We help IT Professionals succeed at work.

Adding multple tables in ultragrid

Medium Priority
482 Views
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

Thanks
Comment
Watch Question

Top Expert 2006

Commented:
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

Commented:
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.
Top Expert 2006
Commented:
Assuming you have 3 datatables in a dataset:

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
the problem the number of table in dataaset will change
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.