MSDN Archive Home
Help and FAQs
Visual Basic Forms over Data Video Series Samples
All Resource Updates
Create New Discussion
Primary key in DataGridView
Feb 2 2009 at 1:57 PM
Thanks for your usefull videos.
My question: I want users to be able to change/add/delete rows in a DataGridView. The first column displays the primary key fields, this column I set to read-only because I don't want the users to be able to change this field of course. However, I want the users to be able to enter a new primary key when they add a new record in the DataGridView; but when the column is set to read-only this is not possible. I know, when you auto-generate a key value there is no problem, but what about the situations where the users can enter a key?
Thanks very much in advance,
Sign in to post message or set email notifications
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.