Hello,
Is it possible to create a hierarchical grid dynamically, with an arbitrary number of Master-Detail levels?
Thanks,Mike
Hello Mike,
Yes, you can create any number of hierarchy levels dynamically within the WebGrid. Just created the grid dynamically and add a column that has a master detail grid attached, which will allow the user to expand to the next level. Your code will look something like the following.
//Create a grid for the level to add
//Setup the secondLevelGridColumns here
//Create a column that will allow user to expand to the next level
//set the master detail facet on the column
masterDetailColumn.setMasterDetail(secondLevelGrid);
//Add the column that will allow to expand to the next level to the main grid
Hope this helps.
Taz.