Gridview button not firing its method

klpd_maaronga

New Member
I populate a gridview called grdOrder by using a method which uses a series of other classes and stored procedures (it's so ugly that even I don't understand because it's given by our professor and he's confused us on whole new level)I then want to delete an item from the database based on value (OrderId) which is in the second rows in the GridView once it is populated. In the row editor of Gridview I created a button and when I double click the gridview in design view it creates the follow \[code\]protected void grdOrder_SelectedIndexChanged(object sender, EventArgs e)\[/code\]So that is what I think should be firing when I hit the button remove on the Gridview. So I put a break underneath that method and it does not fire when I do that on the form in the browser. So it's not working basically.If you want to see more of what's going on here is the full codeshttp://pastebin.com/iSvyJCPQ - Aspx pagehttp://pastebin.com/LVRvaCnu - Code Behind (C#)
 
Back
Top