Wrox Programmer Forums
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 5th, 2005, 09:46 PM
Registered User
 
Join Date: Aug 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default no inserts for you

I am using Visual Studio .NET on a Windows XP Pro Operating System machine. Using VB.NET I am trying to make a datagrid. Everything is all set with it except I don't want the users to be able to add a record using the datagrid. I do need to let the user update some of the fields, so i can't make the datagrid completely read-only. Really, I just don't want that last row to show up in the datagrid. You know, the last row that if I start typing data into it, it adds a new record. Any ideas how to get rid of this row? I have a feeling it isn't something I do to the datagrid itself, but something I do to the dataset or adapter. haven't figured it out yet. Thanks for any help!

 
Old September 5th, 2005, 10:05 PM
Registered User
 
Join Date: Aug 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well I figured it out. I need to use a Dataview as the datasource for my datagrid. In the dataview properties i was able to say don't allow new records.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 8 inserts 2 records... nickLogan BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 5 May 27th, 2009 06:32 AM
inserts fbailey Classic ASP Databases 3 February 22nd, 2007 02:39 PM
Multiple Inserts ~Bean~ SQL Language 1 January 20th, 2006 03:00 PM
Trigger support for multiple Inserts kim3er SQL Server 2000 1 November 6th, 2004 02:51 AM
Script with inserts zee_ahmed2002 SQL Server 2000 2 October 19th, 2004 04:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.