U
ujjc001
Hello all-
I am looking for a way to add a detail row to a datagrid.
In theory I would think I would have to somehow, when the selected
index changes, add a div layer, or perhaps make a pre existing div
layer visible (style display = inline, not display = none). Perhaps
the div could be added somehow in the itemcreated event or something.
I have found this --
http://www.denisbauer.com/ASPNETControls/HierarGridDemo.aspx -- but I
would like something simpler where I can add a button, label, etc to
this row and control it myself. Denis made a great solution but I want
to handle it myself. Also, I couldn't follow his source code so that
didn't help )
Also, I've seen creating another column and hacking the html output
creating code to close the td's and adding a tr with a colspan = to all
your rows. That could work if I can selectivly have that column show
based on a boolean value - open/closed, perhaps a button that you check
the name of, ie. if btn = btnopen then run open code, else if btn =
btnclose then close the row... Somehow though, I would like to be able
to track which ones are open though so on post back they will show
again... Forgive my thinking out loud but just trying to spark some
ideas.
Why isn't there anything else on the net for this? I haven't been able
to find anything.
Thanks for any help on this one.
I am looking for a way to add a detail row to a datagrid.
In theory I would think I would have to somehow, when the selected
index changes, add a div layer, or perhaps make a pre existing div
layer visible (style display = inline, not display = none). Perhaps
the div could be added somehow in the itemcreated event or something.
I have found this --
http://www.denisbauer.com/ASPNETControls/HierarGridDemo.aspx -- but I
would like something simpler where I can add a button, label, etc to
this row and control it myself. Denis made a great solution but I want
to handle it myself. Also, I couldn't follow his source code so that
didn't help )
Also, I've seen creating another column and hacking the html output
creating code to close the td's and adding a tr with a colspan = to all
your rows. That could work if I can selectivly have that column show
based on a boolean value - open/closed, perhaps a button that you check
the name of, ie. if btn = btnopen then run open code, else if btn =
btnclose then close the row... Somehow though, I would like to be able
to track which ones are open though so on post back they will show
again... Forgive my thinking out loud but just trying to spark some
ideas.
Why isn't there anything else on the net for this? I haven't been able
to find anything.
Thanks for any help on this one.