Hierarchical Data and the ASP.NET DataGrid Dot Net Junkies - While there are a number of examples of showing hierarchical data using the Master/Detail record concept, what I was looking for was the ability to display collapsible child rows under those of their parents in the same grid. Something similar to the way the Winforms DataGrid works when you feed it a hierarchical dataset. Unfortunately the ASP.NET DataGrid will only accept one of the tables within a hierachical dataset in its .DataBind method. In order to work around this we need to create a single DataTable object that contains all the rows we want to show when all the nodes of the hierarchy are expanded. Along the way we will leave ourselves some clues in the DataTable rows that tell us which ones are parent nodes and which are children. Once we have created this specially formatted DataTable we can then bind it to the DataGrid, apply a few formatting functions
SQL Server Index Fragmentation and Its Resolution by Randy Dyess
Please send site suggestions in the comments for this entry!
AD
DataGrid Girl
DevASP.Net
Resources
Dot Net Junkies
Dot Net Magazine - Fawcette
M
Metabuilders
Microsoft
ASP.Net Control Library MSDN
Dot Net
R
Regular Expressions Library
Sharing Your Site with RSS by Jason Cook 14 May 2003 - Webmonkey