This is a migrated thread and some comments may be shown as answers.

[Solved] Binding RadGrid to ObjectdataSource containing additional Typed List

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
peter
Top achievements
Rank 1
peter asked on 07 Apr 2009, 02:46 PM
Hello, if this has been asked before I appologize.

I have an objectdatasource and I want to bind all of the properties to a master table except a property that is a list of a different type. I want to bind that list to a details table. I can not seem to be able to do this. Can someone offer some help?

The data source is being populated with the information I am looking for.  here is an example of the properties of the class.

public List<ReqInfoWorkList> lsReqInfoWorkList //  This is for the details table all other properties I want on the main table
{
             get { return _lsReqInfoWorkList; }
             set { _lsReqInfoWorkList = value; }
        }
public string AcctId { get; set; }
public string FName { get; set; }
public string LName { get; set; }
public string RoomBed { get; set; }
public string MRN { get; set; }
public string AdmisDateTime { get; set; }
public string DischDateTime { get; set; }
public string Code { get; set; }
public string DOB { get; set; }
public string AdmitType { get; set; }
public string Level1 { get; set; }
public string Level2 { get; set; }
public bool MADFComplete { get; set; }
public bool Elig { get; set; }
public bool Passport { get; set; }

Thank you for any help you can provide.

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 10 Apr 2009, 07:13 AM
Hi Peter,

You may refer to this blog post on how to bind a RadGrid to such data structure.

Regards,
Rosen
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
peter
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or