Hi,
I've 2 level hierarchy. I followed the example as given in the demo "Programmatic Binding". However, I did a few variations in the code.
Firstly, my datasource is not from a SQL table rather it was set to a default view of a datatable.
Secondly, my datasource is set on PageLoad and not on OnNeedDataSource event.
Thirdly, I do not specify the datakeynames attribute.
In my code behind I set the data sources for the inner detail table on "OnDetailTableDataBind" event.
The problem is I get my first level hierarchy expanded correctly. However, on expanding the second level hierarchy, it does not expand rather it collapses the first level hierarchy too.
I get the "OnDetailTableDataBind" event whenever the first level hierarchy is expanded but I do not get this event fired any time when the second level hierarchy is expanded.
Any reasons why is this behavior ? I assume my logic of setting the datasources are correct since my first level hierarchy is working.
Any help will be appreciated.
Mustansir.
I've 2 level hierarchy. I followed the example as given in the demo "Programmatic Binding". However, I did a few variations in the code.
Firstly, my datasource is not from a SQL table rather it was set to a default view of a datatable.
Secondly, my datasource is set on PageLoad and not on OnNeedDataSource event.
Thirdly, I do not specify the datakeynames attribute.
In my code behind I set the data sources for the inner detail table on "OnDetailTableDataBind" event.
The problem is I get my first level hierarchy expanded correctly. However, on expanding the second level hierarchy, it does not expand rather it collapses the first level hierarchy too.
I get the "OnDetailTableDataBind" event whenever the first level hierarchy is expanded but I do not get this event fired any time when the second level hierarchy is expanded.
Any reasons why is this behavior ? I assume my logic of setting the datasources are correct since my first level hierarchy is working.
Any help will be appreciated.
Mustansir.