|
-
Apr 22nd, 2009, 03:03 PM
#1
Infragistics ultraGrid and .netTiers
Anyone used this combination? I am having an issue trying to load and save a detail row of an Ultragrid, setup as a Master/Detail ggrid relationship, into the database. Here is a step by step about the the database and the code.
I have 2 Tables. One called LeaveCategory and one called LeaveType. LeaveType table has a FK relationship with LeaveCategory.
I have created a binding source that used the .netTiers LeaveCategory entity. When I go into the Infragistics designer for the Ultragrid, I set the data source to this binding source. This process automatically creates the Master Detail relationship and the child band for the LeaveType table/entity.
In the code, I DeepLoad the LeaveCategory
Code:
TList<LeaveCategory> leaveCategories = DataRepository.LeaveCategoryProvider.GetAll();
DataRepository.LeaveCategoryProvider.DeepLoad(leaveCategories, true, DeepLoadType.IncludeChildren, typeof(LeaveType));
leaveBindingSource.DataSource = leaveCategories;
leaveBindingSource.DataBind();
Now I have 2 categories in the database and 1 of them has a type. But the detail child row shows no records een though if I debug I can see the LeaveTypeCollection is populated from the DeepLoad.
Also if I create a new LeaveType, again debugging I can see the LeaveTypeCollection is populate with the data entered, a DeepSave also does not save the LeaveTypes.
I was wondering if anyone with experience in this knows what I am missing. Documentation on this is pretty nil. Hopefully I provided enough information.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|