Adding multple tables in ultragrid

Posted on 2007-07-20
Last Modified: 2013-11-15
I am working on ultragrid in 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
    LVL 17

    Expert Comment

    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.
    LVL 1

    Author Comment

    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

    Assuming you have 3 datatables in a dataset:

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

    Author Comment

    the problem the number of table in dataaset will change

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

    755 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

    26 Experts available now in Live!

    Get 1:1 Help Now