Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Restrict Delete rows
October 01, 2010
can any body plz tell me how to restrict to delete the record in "Delete" key press.
i m working in windows application ,i have a datagridview and i have added some rows ,when ever i am clicking the "Delete" key it shouldn't delete any rows.
it's very urgent.........
Posted Date: October 01, 2010 Points: 5
Then what is the meaning of having a delete key, simply remove it from the Grid.
Posted Date: October 02, 2010 Points: 5
i dint get your qustin. If you dont want to allow delete in the gridview. Just change the property ' AllowUserToDeleteRow' to false
Posted Date: October 03, 2010 Points: 5
Sorry, i think "clicking" word made you confusion.....
actually that should be "pressing key"
means when ever i pressing the "Delete" key from key board the rows shouldn't not delete from gridview.
Posted Date: November 19, 2010 Points: 5
You should follow this option
Select the GridView Properties --> Set false on the property of AllowUserToDelete
Thanks & Regards
Posted Date: December 11, 2010 Points: 5
Restrict Delete rows
1. drag control on form then show the task of datagriview in which unchecked enable deleting...
Posted Date: September 07, 2011 Points: 20
just count your delete record and to disable the delete key.
For Example :If you want to delete only 10 records in the Datagridview. just count the pressing of delete key.and give a condition. It's an idea.
Regards, Lakshmi Naraayanan.S
To post reply
Related Questions Related Questions
ASP.NET Grid with Add, Delete, Edit and Rows REORDER Functionalities
Urgent datagridview edit updated rows C#.NET
Auto Increment id not getting decremented with Delete Record
How to restrict user to (ctrl+v) option for a text box..?
ASP.NET - Datagrid with Display, Edit, Delete and Sort functionalities
restrict data duplication in data base
How to Delete Non-Empty Folder in Vb.net
banding navigator + delete button+ items position
Latest Forum Questions From The Same Category
database is read-only.
editor for visual basic with c#.net
How to get phone number in .Net windows application?
while accessing method from proxy giving an unauthorized access
How to make search between two dates accept null not obligatory search proplem
Create a Windows form application using Excel as database..
Recieve Data From Serial Com Port C# In One Line And Convert To integer
display parent data and child data as a row group in one datagridview using c# winform
enter key event in windows app c#.net
windows appplication c#.net
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend