Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ButtonCommand in a datagrid
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
ButtonCommand in a datagrid
Miscellaneous
Thread ID:
00777282
Message ID:
00777282
Views:
44
I have a ButtonCommand in a grid C# page.

This code won't fire?
public void Button_Edit(Object sender, DataGridCommandEventArgs e)
{
// grab value and place in session.
Session["aPage"] = MmDataGrid1.SelectedItem.ToString();
}


In my html for the grid:
OnEditCommand="Button_Edit">

Html for the button:
{asp:ButtonColumn ButtonType="PushButton" DataTextField="ap_part" HeaderText="PTO Model" CommandName="Button_Edit">
{ItemStyle Wrap="False">{/ItemStyle>
{/asp:ButtonColumn>

What am I missing here? Also how do you scrape the Button Text which is a part # that I need to pass back for a data request?

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform