sirfunusa said:
Does anyone have sample code for an expanding parent/child datagrid.
Like a treeview control with the "+/-" signs. ASP.NET 1.1
thanks
Jeff
The implementation Ken mentioned looks a lot cleaner than what I have.
All the logic of my implementation is server-side. I am not binding to a
dataset, but rather a list of business objects.
Basically, I am including a "hidden" datagrid in the template for the last
column of the parent grid. This grid's Visible flag is toggled whenever the
user clicks the expand/collapse button (itself a separate column in the
parent grid). The 'hidden' grid is separated from the actual content of
that last column by a line break (<br>), which gives the appearance of the
table "expanding" when that grid suddenly becomes visible.
I cannot provide source to what I have done due to restrictions of the
project, so I hope between the information I have given and Ken's example
you can figure something out. If I was using datasets, Ken's example looks
to be a pretty good implementation.