views:

110

answers:

1

Hi,

Though i am setting in grid view

OnRowDeleting="GridView1_RowDeleting"

and cicking on the gridview i am getting the

protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)

as i am clicking on Delete link it should open the Delete Event

protected void GridView1_RowDeleting(object sender,GridViewDeletedEventArgs e)

but its not opening,

please point me where is my mistake.

+1  A: 

The problem is about your the event arguments, you should use GridViewDeleteEventArgs for OnRowDeleting. GridViewDeletedEventArgs is used for OnRowDeleted event.

protected void GridView1_RowDeleting(object sender,GridViewDeleteEventArgs e)

OnRowDeleting Reference

OnRowDeleted Reference

Hope this helps !

Canavar