Hi,

I have a problem that I'm having trouble figuring out.

I have a datagrid with the first column being a ButtonColumn. This
ButtonColumn contains an image of an arrow which points to the right on every
row. I did this by writing an <img> tag in the 'text' field for the
ButtonColumn. The ButtonColumn CommandName is "cmdArrow". In my code-behind,
I have an ItemClick event that has a switch method to see which commandName
is calling the function. This part works. When I click on the arrow, my row
expands and displays more information.

This is where I need some help. I'm trying to switch the arrow image to an
arrow that points down. So, users can click on the RightArrow to display
info, then once the info is displayed, the arrow will turn into a DownArrow,
which should then be able to be clicked in order to collapse the row back to
normal size.

In my code-behind file for the RightArrow (to expand a row in order to show
more info), I switch the text in the ButtonColumn to point to an <img> tag
that holds the Down Arrow image. That works fine. The row is expanded and
it shows more info - there is also a down arrow in the first ButtonColumn.
However it no longer can be clicked (it's not a button anymore). Does anyone
know what I need to do to make it link to the ItemClick event again?

I tried making an entirely new LinkButton but that didn't work (however I
could have been missing some steps). Any help would be appreciated!
Thank you

-TR


--
Message posted via DotNetMonster.com
[url]http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net-datagrid/200510/1[/url]