Hi,
I have a Hierarchical grid with several detail table levels. I'm using the DetailTableDataBind method as below to set each detail tables data source however at the last level depending on certain criteria i need to bind to a different source for each item. This works fine but if there are more than 2 items in this last detail table the columns displayed are always from the first item expanded. (Autogenerate columns is set to true on the last detail table as i don't always know the columns that are going to be returned.) Is there any way to show the columns from each individual data source?
Many Thanks
I have a Hierarchical grid with several detail table levels. I'm using the DetailTableDataBind method as below to set each detail tables data source however at the last level depending on certain criteria i need to bind to a different source for each item. This works fine but if there are more than 2 items in this last detail table the columns displayed are always from the first item expanded. (Autogenerate columns is set to true on the last detail table as i don't always know the columns that are going to be returned.) Is there any way to show the columns from each individual data source?
switch
(e.DetailTableView.Name)
{
case
"tbl1"
:
{
//setting the detailtableview datasource here
break
;
}
case
"tbl2"
:
{
//setting the detailtableview datasource here
if(condition 1)
{
e.DetailTableView.DataSource = source1;
}
else
{
e.DetailTableView.DataSource = source2;
}
break
;
}
}
Many Thanks