PC Review


Reply
Thread Tools Rate Thread

DATGRID DELETE BUTTON

 
 
Alan
Guest
Posts: n/a
 
      12th Jul 2004
Dear all,

I use VB.NET to develop a DATAGIRD, in the grid, there is a ASP Button
Colum, I want to delete the record by clicking the delete button

However, when I use the LINKBUTTON, it can, when I change it to PUSHBUTTON,
it can't

Do anyone knwo why and how to solve this problem?

Manay Thanks



 
Reply With Quote
 
 
 
 
One Handed Man \( OHM - Terry Burns \)
Guest
Posts: n/a
 
      12th Jul 2004
If you change it to a push button, you need to add a handler to it. You can
prove this by adding a Response.Write("Im in my Sub") and seeing that the
DeleteCommand event does not fire if you make it a push button.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"Alan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear all,
>
> I use VB.NET to develop a DATAGIRD, in the grid, there is a ASP Button
> Colum, I want to delete the record by clicking the delete button
>
> However, when I use the LINKBUTTON, it can, when I change it to

PUSHBUTTON,
> it can't
>
> Do anyone knwo why and how to solve this problem?
>
> Manay Thanks
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datgrid help Richard Fagen Microsoft VB .NET 4 24th May 2005 01:09 AM
DatGrid Problem Prasun Microsoft ADO .NET 2 5th May 2005 09:55 PM
datgrid and sql bit field SKG Microsoft ASP .NET 2 16th Jun 2004 01:00 AM
Datgrid Neil Microsoft VB .NET 6 10th Jan 2004 05:18 PM
Delete Datgrid's Last Row, Click on the grid again, Get the Exception. Sheetal Sharma Microsoft Dot NET Framework Forms 0 1st Aug 2003 02:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:00 AM.