Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
treilly via DotNetMonster.com #1
Datagrid Linkbutton question
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]
treilly via DotNetMonster.com Guest
-
datagrid linkbutton event and firefox
I inherited some code with a datagrid being populated at run time (ASP.NET C# page), and each row in the datagrid has a linkbutton. In IE, clicking... -
LinkButton control in datagrid
Hi, I have a ButtonColumn in datagrid. Based on the cell values, i want to disable the link of the buttoncolumn and want to display it as a... -
Question about LinkButton on datagrid
other than using client side scripting, is there any way I can trap the click of a LinkButton column in a datagrid. I want to move user to a... -
Disable linkbutton in datagrid
Hi, I have a combined form with a few buttons, textboxes and a datagrid. The datagrid has one button column and four bound columns. One of the... -
PushButton v. LinkButton in a DataGrid
I have two buttons in a DataGrid. If I leave the ButtonType = "LinkButton", the EditCommand and DeleteCommand events fire fine. If I change th...



Reply With Quote

