PC Review


Reply
Thread Tools Rate Thread

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

 
 
Jianfeng Chen
Guest
Posts: n/a
 
      3rd Sep 2003
no problem with vb6, but what's wrong with the datagrid binding with vb.net?

thanks.


 
Reply With Quote
 
 
 
 
Ken Tucker
Guest
Posts: n/a
 
      3rd Sep 2003
Hi,

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

Ken
-----------------------------
"Jianfeng Chen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> no problem with vb6, but what's wrong with the datagrid binding with

vb.net?
>
> thanks.
>
>



 
Reply With Quote
 
Jianfeng Chen
Guest
Posts: n/a
 
      4th Sep 2003
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" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Hi,
>
> Bind the datagrid to a dataview instead of the dataset. The
> dataview has the allownew, allowedit, and allowdelete properties.
>
> Ken
> -----------------------------
> "Jianfeng Chen" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > no problem with vb6, but what's wrong with the datagrid binding with

> vb.net?
> >
> > thanks.
> >
> >

>
>



 
Reply With Quote
 
Ken Tucker
Guest
Posts: n/a
 
      4th Sep 2003
Hi,

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

Ken
----------------------
"Jianfeng Chen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
> > Hi,
> >
> > Bind the datagrid to a dataview instead of the dataset. The
> > dataview has the allownew, allowedit, and allowdelete properties.
> >
> > Ken
> > -----------------------------
> > "Jianfeng Chen" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > no problem with vb6, but what's wrong with the datagrid binding with

> > vb.net?
> > >
> > > thanks.
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bound DataGrid Wizard with built in Update/Delete/Insert? Mark Microsoft ASP .NET 2 24th Nov 2004 12:02 PM
Enable Macros & Disable Insert from code Giri Microsoft Excel Misc 2 3rd May 2004 01:44 PM
DataGrid insert/delete/update for tables in SQL help! 4 Microsoft C# .NET 0 18th Feb 2004 05:42 PM
Disable Insert In DataGrid Rxd Microsoft C# .NET 1 23rd Dec 2003 02:51 PM
Insert, Update, Delete through DataGrid Garry Newman Microsoft VB .NET 7 10th Dec 2003 11:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:52 AM.