A
Andrew Chalk
I have created a datagrid in which I place a aspushButton in one column.
This button displays text while I would rather it display a graphic. I don't
think I can use the asp:ImageButton instead as its evntargs do not pass the
information that I need on the datagrid row on which the button has been
pressed. Is there any way to display a graphic rather than text? Some kind
of trick?
Specifically: When the button is pressed I need to read datagrid values that
are valid in the button's column. Currently I use:
string sProdName = ((System.Web.UI.WebControls.TableCell)
e.Item.Cells[2]).Text.Trim();
I can do this with a PushButton but not an ImageButton.
Many thanks.
This button displays text while I would rather it display a graphic. I don't
think I can use the asp:ImageButton instead as its evntargs do not pass the
information that I need on the datagrid row on which the button has been
pressed. Is there any way to display a graphic rather than text? Some kind
of trick?
Specifically: When the button is pressed I need to read datagrid values that
are valid in the button's column. Currently I use:
string sProdName = ((System.Web.UI.WebControls.TableCell)
e.Item.Cells[2]).Text.Trim();
I can do this with a PushButton but not an ImageButton.
Many thanks.