I am using Visual Studio 2008. I have create a DataLibrary with three DataSets (Menu, MenuGroup, and MenuItem). Each row in Menu has linked items in MenuGroup. The problem is that when I call .GetMENU_GROUPRows() I get a "Value does not fall within the expected range" error.
Here is a snippet of code:
dsMenu.Fill(); // ds is a C1WebDataSet
C1.Data.
C1DataTable ds = dsMenu.Tables["MENU"];
for (int i = 0; i < ds.Rows.Count; i++ )
{
MENURow mrow = MENURow.Obj(ds.Rows[i]);
C1WebMenu1.Items.Add(new C1WebMenuItem(mrow.Title));
MENU_GROUPRow[] grow = mrow.GetMENU_GROUPRows(); // Error here: "Value does not fall within the expected range"
I have absolutley no idea why this error happens. Can you help?
Thanks
Mark