G
GaryDean
I have a button field in a gridview defined as follows:
<asp:ButtonField ButtonType="Button"
CommandName="AcceptOrder" Text="Accept Whole Order">
<ControlStyle Font-Size="X-Small" />
</asp:ButtonField>
In the RowCommand event I have the following code:
if ((string)e.CommandName.ToLower() == "acceptorder")
{
int myRow = int.Parse(e.CommandArgument.ToString());
WebControl myBF =
(WebControl)gvOrders.Rows[myRow].Cells[acceptbutton].Controls[0];
I'm trying to get ahold of the control to test for what the text value is.
When myBF is displayed in the watch window it value is { Text="Accept Whole
Order }
But, I can't find that text value anywhere in the object. There is not text
values anywhere.
How can I find the text (and change it)?
<asp:ButtonField ButtonType="Button"
CommandName="AcceptOrder" Text="Accept Whole Order">
<ControlStyle Font-Size="X-Small" />
</asp:ButtonField>
In the RowCommand event I have the following code:
if ((string)e.CommandName.ToLower() == "acceptorder")
{
int myRow = int.Parse(e.CommandArgument.ToString());
WebControl myBF =
(WebControl)gvOrders.Rows[myRow].Cells[acceptbutton].Controls[0];
I'm trying to get ahold of the control to test for what the text value is.
When myBF is displayed in the watch window it value is { Text="Accept Whole
Order }
But, I can't find that text value anywhere in the object. There is not text
values anywhere.
How can I find the text (and change it)?