473,382 Members | 1,357 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,382 software developers and data experts.

datagrid --Delete row one by one as and when row is clicked to delete

plz anybodyhelp me
How to delete a row as soon as user clicked a particular row.
When i click delete to delete row it delete whole datagrid row

plz reply ASAP
Dec 26 '06 #1
5 1488
Bussis
3
What exactly do you mean?

You want to delete a row one at the time. So pressing delete will delete the row so it won't show the next time? Post some sample how you do it now.
Dec 26 '06 #2
aaryan
82
plz anybodyhelp me
How to delete a row as soon as user clicked a particular row.
When i click delete to delete row it delete whole datagrid row

plz reply ASAP
hi,
you can use the RowFilter property on the dataview created on the table.
hope it gives you some idea.
Dec 27 '06 #3
karthi84
271 100+
hi,
whether the data's are from the sql database or any other. try this one. have an identity field in your database and passing that particular value to the database when the grid delete button is clicked you can delete that particular row. try it out and if any problem reply with your error code i will explain you.
Dec 27 '06 #4
karthi84
271 100+
hi,
have you binded the datagrid again after deleting the row. this should solve your problem if not try with the below one
hi,
whether the data's are from the sql database or any other. try this one. have an identity field in your database and passing that particular value to the database when the grid delete button is clicked you can delete that particular row. try it out and if any problem reply with your error code i will explain you.
Dec 27 '06 #5
ashmc44
12
use grid_name.removeat(e.item.itemindex)
Dec 28 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: AFN | last post by:
I'm trying to set a submit button to change text and color when clicked. Like saying "please wait" instead of "submit" and then changing the background color and text color. All works, except for...
2
by: Mike | last post by:
How can i highlight a row in my datagrid when the user clicks it? I can do this in VB.NET but my app is in C#.
1
by: thechaosengine | last post by:
Hi all, Can somebody tell me if the built in paging support for the datagrid works when using a custom collection and a custom business object as the data. I was well pleased when I found that...
2
by: Austin T | last post by:
Hello I wish to set up a handler to detect when the <Delete> key is pressed on the keyboard. This is so that I can intercept it and if the focus is on my datagrid, I will display a confirmation...
4
by: Naeem Bari | last post by:
Hi, I am using postgres 7.4.5 on Redhat Enterprise Linux 3. My background is really on Oracle, and I am porting a largish database over to postgres. Here is my problem: On oracle, I...
2
by: Rob Roberts | last post by:
Is there any way to prevent a ButtonField in a GridView from doing a postback when clicked? I want to use my own onclick handler to call window.open('SomePage.aspx') to display a page in a new...
3
by: Learner | last post by:
Hello, I have two buttons on one of my VehicleDetails.aspx page. Obiviously these two buttons takes the user to two different pages. Now my client is interested in having a linkbutton instead of...
9
by: Money | last post by:
If I allocate memory like this int *ptr = new int; Can I apply delete ptr; instead of delete ptr; since I am only allocating memory for 1 integer.
5
by: Bob Bridges | last post by:
Start with two tables, parent records in one and child records in the other, a one-to-many relationship. Create a select statement joining the two. Display the query in datasheet mode. When I...
2
by: zeina | last post by:
hi im writing a php scrib and i'm new to this i want to delete informatiom from sql when the user click the check box.how can i do this. here is the code of the tabel: <?php $db =...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?

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.