Advertisement

09.17.2007 at 10:00PM PDT, ID: 22835156
[x]
Attachment Details

User multiple Relations in Dataset for Infragistics UltraWebGrid

Asked by EltonSky in Infragistics

Tags: ultrawebgrid, dataset, multiple, infragistics, relations

I created a DataSet and add 2 tables in.

I want a hierarchical display so I setup 2 relations in ds. The problem is only the first relation work!!!
my code:

        DataSet ds = new DataSet();

        oca_teamTableAdapter teamTa = new oca_teamTableAdapter();
        DataTable dt = teamTa.GetData();
        ds.Tables.Add(dt);
        oca_userTableAdapter userTa = new oca_userTableAdapter();
        dt = new DataTable();
        dt = userTa.GetData();
        ds.Tables.Add(dt);

        ds.Relations.Add(ds.Tables["team"].Columns["id"], ds.Tables["team"].Columns["parent_id"]);//self referencing here
        ds.Relations.Add(ds.Tables["team"].Columns["id"],ds.Tables["user"].Columns["branch"]);
       
        UltraWebGrid1.DisplayLayout.ViewType = ViewType.Hierarchical;
       
       
        UltraWebGrid1.DataSource = ds.Tables["team"];
        UltraWebGrid1.DataBind();

Can we apply multiple relation in ultrawebgrid? if so what is the problem here?

Cheers,
EltonStart Free Trial
[+][-]09.18.2007 at 06:55AM PDT, ID: 19912756

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2007 at 05:33PM PDT, ID: 19917592

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.25.2007 at 11:28AM PDT, ID: 19957836

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Infragistics
Tags: ultrawebgrid, dataset, multiple, infragistics, relations
Sign Up Now!
Solution Provided By: ZeonFlash
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.19.2007 at 02:56AM PDT, ID: 20107559

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628