Help: GridView RowCommand Event intercepts RowDeleting Event

K

keithb

What causes a GridView RowCommand Event to intercept a RowDeleting Event?
How to cure it?

Thanks,

Keith
 
P

PeterKellner

What causes a GridView RowCommand Event to intercept a RowDeleting Event?
How to cure it?

Thanks,

Keith

Not exactly sure what you are asking, but any linkbutton on a gridview
that generates a postback will execute the RowCommand event. You can
tell it's a delete command like the following.

protected void GridView1_RowCommand(object sender,
System.Web.UI.WebControls.GridViewCommandEventArgs e)
{
if (e.CommandName.ToLower().Equals("delete"))
{

}

}

Let me know more details about what you want to know and I'll try to
help.

-Peter
Peter Kellner
http://peterkellner.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top