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

Disabling CTRLA / Delete In Datagrid

Hi,
is there a way to prevent users from

a) selecting single rows and deleting them
b) select the entire table and delete it with CTRL+A then Delete

Also,
is there a faster way to copy the a data grid into the clipboard? If I
have a larger datatable, CTLR+A takes forever.

Thanks for any help
Alex

Nov 20 '05 #1
3 921
Hi Alex

a) and b) use DataGrid1.ReadOnly = True

Sorry i don't any fast way to copy the datatable to the
clipboard.

Kind Regards
Jorge
-----Original Message-----
Hi,
is there a way to prevent users from

a) selecting single rows and deleting them
b) select the entire table and delete it with CTRL+A then Delete
Also,
is there a faster way to copy the a data grid into the clipboard? If Ihave a larger datatable, CTLR+A takes forever.

Thanks for any help
Alex

.

Nov 20 '05 #2
Jorge,
thats not the solution as I still need to be able to edit. I need to be
able to edit the table but want to prevent the user from deleting entire
rows or the table.

Alex

Jorge wrote:
Hi Alex

a) and b) use DataGrid1.ReadOnly = True

Sorry i don't any fast way to copy the datatable to the
clipboard.

Kind Regards
Jorge

-----Original Message-----
Hi,
is there a way to prevent users from

a) selecting single rows and deleting them
b) select the entire table and delete it with CTRL+A


then Delete
Also,
is there a faster way to copy the a data grid into the


clipboard? If I
have a larger datatable, CTLR+A takes forever.

Thanks for any help
Alex

.


Nov 20 '05 #3
Jorge,
thats not the solution as I still need to be able to edit. I need to be
able to edit the table but want to prevent the user from deleting entire
rows or the table.

Alex

Jorge wrote:
Hi Alex

a) and b) use DataGrid1.ReadOnly = True

Sorry i don't any fast way to copy the datatable to the
clipboard.

Kind Regards
Jorge

-----Original Message-----
Hi,
is there a way to prevent users from

a) selecting single rows and deleting them
b) select the entire table and delete it with CTRL+A


then Delete
Also,
is there a faster way to copy the a data grid into the


clipboard? If I
have a larger datatable, CTLR+A takes forever.

Thanks for any help
Alex

.


Nov 20 '05 #4

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

Similar topics

3
by: Ryan Liu | last post by:
Hi there, I got a NullReferenceException when delete last row in a datagrid. I had hard time to solve since it does not occur in my own code. I put a datagrid in my inherited user control,...
2
by: Mark Perona | last post by:
I created an ASP.net form with an editable datagrid on it. I can create new records, and update and delete existing records. The problem I have is that I want a field in the grid to be editible...
6
by: sonic | last post by:
Hi, I am experimenting with different viewstate management ideas for large datagrids, and found a microsoft suggestion to turn it off, and only store relevant information by manually accessing...
4
by: DrData | last post by:
I'm working on an ASP.Net application written in C#. On one page, there are several datagrid controls used to display, edit and delete detail records relating to the master record also displayed on...
2
by: Lars Netzel | last post by:
Hi What events are there to do things in when I am on a row in a datagrid (bound from a dataset) and press Delete key... There's no Delete Event on the drig and I can't figure out if there are...
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...
0
by: laurent | last post by:
Environment: VS NET 2003 Fr Framework: 1.1 OS: WinXP SP2 Fr Hello I have a problem to add with pop-up and to delete in a datagrid(ButtonColumn delete) on WebForms. code button HTML which...
5
by: Jeff User | last post by:
Hello ..NET 1.1, VS 2003, C# & asp.net I have tried to follow msdn instructions and samples but I can not get an event to fire for this button on the datagrid. There has to be something obvious...
10
by: amiga500 | last post by:
Hello, I have one basic simple question. When I have multiple records in the datagrid as follows: Code Product 1 Product 2 Product 3 11111 A B C...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.