Newbie question regarding ASP.NET 2.0 / VS 2005 and the use of controls, primarily grids, and the ability to use Dot nomenclature to bind to child (related) entities.
Note: I apologize if I am inappropriately mixing-up terminology, principles and techniques.
Question:
From an OOP/ORM perspective is it uncommon for ANY (microsft/3rd party (Infragistics, ComponentArt, etc.)) controls to support child entity attributes via the dot nomenclature / dot separated property paths via property definitions (In the VS 2005 designer/wizard mode) or aspx configuration code for the control, particularly when bound to an LLBLGen Datasource.
*This is thinking of a representing flat data presentation of fields from multiple related tables using an llblgen entity objects, llblgendatasource and a grid control.
It has been hard for me in the last couple of days to search the internet on various vendor controls to see if any one of them has this ability. though I am not sure if this is due to my lack of knowledge for key words/terms identifying this.
For example, it seems that my current situation does not work, and I haven’t heard back from the infragistics support staff.
I currently have access to use an infragistics UltraWebGrid v6.2 control that is bound to an LLBLGen2 selfservicing datasource that I want to declare in the aspx code for the grid the binding to a related entity attribute:
- I have an entity collection CustomerCollection() that is configured to the llblgendatasource
- For each entity in the collection, there is a related entity Orders Entity:
CustomerCollection myCustomerItems = new CustomerCollection();
myCustomerItems.getMulti(null);
myCustomerItems[0].Orders.OrderID
In the aspx page I tried the following to set a column to the child entity attribute OrderID which does not return the related entity attribute data:
<igtbl:UltraGridColumn BaseColumnName="Orders.OrderID"
HeaderText="OrderID" IsBound="True" Key="Orders.OrderID" Width="30%">
<Header Caption="OrderID">
<RowLayoutColumnInfo OriginX="2" />
</Header>
<Footer>
<RowLayoutColumnInfo OriginX="2" />
</Footer>
</igtbl:UltraGridColumn>
*Note: That I have read threads in this forum on how to use the LLBLGen Win32 designer application to create a mapped field for OrderID in the CustomerCollection. I was just hoping to avoid that as I dont know if that is considered best practice? Though if thats all that is available to me, then of course that's the right answer/action to take :-)
Thanks for any help/feedback on this topic.
-Tony Norton