473,396 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DATGRID DELETE BUTTON

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

Nov 20 '05 #1
1 944
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" <sa********@hotmail.com> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
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

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Melissa | last post by:
What is the code to delete a command button from a form? Can the code be run from the click event of the button to be deleted? Thanks! Melissa
3
by: vcornjamb | last post by:
Hello, I am developing a web form that contains some buttons and a data grid which has as its last column link buttons that will delete the data associated with that row. Everything works fine,...
3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
1
by: Rajani | last post by:
Hello, I am displaying data from database in datagrid. DG is having edit and delete features. Pagesize is 10. I have total 12 records(2 pages). Now i am deleting 12th and 11th records. Delete...
6
by: polocar | last post by:
Hi, I'm writing a program in Visual C# 2005 Professional Edition. This program connects to a SQL Server 2005 database called "Generations" (in which there is only one table, called...
3
by: Kevin M | last post by:
I have one table and have created a form from that table. Also, I have created a delete query. I want to but a button on the form which will delete all records from the table; however, I cannot get...
2
by: 1980dinesh | last post by:
Hi, I have a DatGrid and i have added a checkboxes as template column i have write javascipt code to check and unckeck but at button event of code behind i can't grab the (checked) true condition...
1
by: manvendra1981 | last post by:
hello... my problem --- i am able to display data in datagridview in c#.net 2.0 and we have taken button's in form ---- *delete *add *save when we press add button then new row show in...
0
by: Raghav | last post by:
Hi, I am retrieveing the data from 2 table (MAster Detail) to the winform and displaying on winform in a grid view.User should have an uption to update the rows.So There is a button Update wen...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.