In TreeGrid control, user can display the rows in collapsed state at initial load. This can be achieved by enabling the “EnableCollapseAll” property.
Please refer the following code snippets for collapsing all the rows of the TreeGrid.
The following output is displayed as a result of the above code example.
A sample to collapse all rows in TreeGrid is available in the following link,
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
|7869||07/27/2017||07/27/2017||ASP.NET Web Forms||TreeGrid|