473,396 Members | 2,076 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.

code to disable the DELETE key

how to disable the DELETE key in a gatagrid control
without having to make the datagrid as READ-ONLY; I wander
if there is a code to diable this key because it is very
dangerous in master detail relations where the user
presses the delete key and all rows and child rows
disappear; It could be easily handled by ignoring the
deletions of the GETCHANGES in the update event; but
momentarily the users does not see that !!

there is something in the e.handled = true or something
like that !!

Nov 20 '05 #1
1 1684
Hi,

http://www.thescarms.com/dotNet/ConfirmDelete.asp

Ken
---------------
"ziad dodin" <do****@cyberia.jo> wrote in message
news:bd****************************@phx.gbl...
how to disable the DELETE key in a gatagrid control
without having to make the datagrid as READ-ONLY; I wander
if there is a code to diable this key because it is very
dangerous in master detail relations where the user
presses the delete key and all rows and child rows
disappear; It could be easily handled by ignoring the
deletions of the GETCHANGES in the update event; but
momentarily the users does not see that !!

there is something in the e.handled = true or something
like that !!

Nov 20 '05 #2

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

Similar topics

5
by: Greg | last post by:
I am developing an application where I need to secure a workstation for periods of time. I can use BlockInput to stop users from task switching or messing with the keyboard, but I would like to...
1
by: S. van Beek | last post by:
Dear reader, I can "able" and "unable" (disable) reference libraries in the reference form of VBA with Tools/References.. But is there code available in VBA to disable a missing...
9
by: junlia | last post by:
Does anyone how how can we disable the auto-postback feature in asp.net page? I have to use a server side control in the page, but the auto post back feature in it causes problems for me. Please...
4
by: Brad | last post by:
Hello All, I am working on a kiosk application for a library. I do not want users to be able to hit Ctrl-Alt-Delete and exit the kiosk application. I did some searching on the web but did not...
1
by: johnb41 | last post by:
I have a datagrid that successfully allows editing and updating (with dataadapter.update command). I want the user to be able to edit the "text" in the datagrid, but i DON'T want the user to be...
1
by: lynchm0bx | last post by:
I'm brain dead today. I have a page that updates/deletes user records. I made the mistake of thinking that because admin's use it, that I didn't have to make it stupid proof... How do i...
1
by: keithb | last post by:
I have a GridView control that has a delete button (hyperlink) in one column. The datasource table contains a column that has a true/false indicator showing whether or not the record can be...
0
by: TT | last post by:
Hello. I'm working in asp.net and i need to disable the edit/delete functionality from a frmview component. help me.thang you! my ACL sub: Protected Sub Page_Load(ByVal sender As Object,...
3
by: halimunan | last post by:
hi all, i have this program that will run and the result is based on the .config file. how do i disable the code from the config file ? for example... i want some method to not functioning...
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: 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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.