473,396 Members | 1,774 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.

how to disable Delete and Insert but enable update with Datagrid?

no problem with vb6, but what's wrong with the datagrid binding with vb.net?

thanks.
Nov 20 '05 #1
3 7960
Hi,

Bind the datagrid to a dataview instead of the dataset. The
dataview has the allownew, allowedit, and allowdelete properties.

Ken
-----------------------------
"Jianfeng Chen" <ji***********@wingson.com> wrote in message
news:uz*************@tk2msftngp13.phx.gbl...
no problem with vb6, but what's wrong with the datagrid binding with vb.net?
thanks.

Nov 20 '05 #2
Thanks.
In fact, the problem is not dataset or dataview, it's datagrid.
i want to disable the 'Del' key when using datagrid, or at least
let me control the relatived events.
"Ken Tucker" <vb***@bellsouth.net> wrote in message
news:#2**************@TK2MSFTNGP11.phx.gbl...
Hi,

Bind the datagrid to a dataview instead of the dataset. The
dataview has the allownew, allowedit, and allowdelete properties.

Ken
-----------------------------
"Jianfeng Chen" <ji***********@wingson.com> wrote in message
news:uz*************@tk2msftngp13.phx.gbl...
no problem with vb6, but what's wrong with the datagrid binding with

vb.net?

thanks.


Nov 20 '05 #3
Hi,

Maybe this will help.
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q889q

Ken
----------------------
"Jianfeng Chen" <ji***********@wingson.com> wrote in message
news:e2*************@TK2MSFTNGP12.phx.gbl...
Thanks.
In fact, the problem is not dataset or dataview, it's datagrid.
i want to disable the 'Del' key when using datagrid, or at least
let me control the relatived events.
"Ken Tucker" <vb***@bellsouth.net> wrote in message
news:#2**************@TK2MSFTNGP11.phx.gbl...
Hi,

Bind the datagrid to a dataview instead of the dataset. The
dataview has the allownew, allowedit, and allowdelete properties.

Ken
-----------------------------
"Jianfeng Chen" <ji***********@wingson.com> wrote in message
news:uz*************@tk2msftngp13.phx.gbl...
no problem with vb6, but what's wrong with the datagrid binding with

vb.net?

thanks.



Nov 20 '05 #4

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

Similar topics

16
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums...
16
by: robert | last post by:
been ruminating on the question (mostly in a 390/v7 context) of whether, and if so when, a row update becomes an insert/delete. i assume that there is a threshold on the number of columns of the...
0
by: 4 | last post by:
Insert/Delete/Modify Statement Shortcuts??? Help!! I am working in C# and running an Oracle 9i server. I was just wonering if there is a shortcut way of updating my tables and not have to...
0
by: Robert Ladd | last post by:
Hi, I'm trying to disable the asp.net calendar control from a javascript function, but it doesn't disable the doPostBack. To simplify the situation, assume a page with 4 controls. A...
1
by: Geroge D. Lake | last post by:
Hi, I need to disable the resizing of a datagrid. I have tried al day and no luck. Any Ideas? Thanks. George.
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: Net Virtual Mailing Lists | last post by:
Hello, I have a table with a rule that goes something like this: CREATE OR REPLACE RULE sometable_delete ON DELETE DO delete FROM cache WHERE tablename='sometable'; CREATE OR REPLACE RULE...
2
by: Iain | last post by:
Hi All I am witing a web app using Delphi developer 2006 (C# app) and I have a datagrid. Excuse the numptyness of the question. I have a datagrid with the ability to Insert, Edit/Update and...
3
by: Pietro | last post by:
Hi all, First of all I'd like to thank you very very much ,as finally after many years of searching,I could find a code to disable/enable the shift key,but actually i cannot use the code as I'm...
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?
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
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...
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...
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.