I'm using vb.net and tried to set up a Master/Detail hierarchical grid. I followed the instructions in the documentation "Creating hierarchical grids from design-time" to the letter without success, that is to say when he program ran it looked like a Master/Detail Grid, but when it dropped down to view the detail table there was no data. I then went back into the property builder and changed the properties for the Detail table and set the Data Source property to the appropriate data source for the detail table and the detail grid showed up correctly. The problem however is I could not see the field/column values for the detail table in the property builder. I then tried to set the column values from the code behind on the load event. I used the same syntax as in the documentation to try and set the first column visible property value to false as in : TryCast(grdTruckStatus.MasterTableView.Items(0), GridDataItem).ChildItem.NestedTableViews(0).GetColumnSafe("tID").Visible = False
Problem here is when I run the code I get a run time error telling me I have an "Argument Out of Range Exception". I thought there may be a problem with the detail table so I added the code "MsgBox(Me.grdTruckStatus.MasterTableView.HasDetailTables())", which returned True, so I know the program knows there's a detail table.
I sent the code to support and what they send me is an example project in C#, when I'm using VB, so I was wondering if someone else has come across this problem or can tell me 1. how exactly to set up the hierarchical grid at design time so I can see and change the field/column properties or 2. If after setting up the Master/Detail you cannot see the detail table fields what is the appropriate syntax is to set the column properties in code behind.
Thanks,
Tom
Problem here is when I run the code I get a run time error telling me I have an "Argument Out of Range Exception". I thought there may be a problem with the detail table so I added the code "MsgBox(Me.grdTruckStatus.MasterTableView.HasDetailTables())", which returned True, so I know the program knows there's a detail table.
I sent the code to support and what they send me is an example project in C#, when I'm using VB, so I was wondering if someone else has come across this problem or can tell me 1. how exactly to set up the hierarchical grid at design time so I can see and change the field/column properties or 2. If after setting up the Master/Detail you cannot see the detail table fields what is the appropriate syntax is to set the column properties in code behind.
Thanks,
Tom