Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent new fields in DataGrid

Status
Not open for further replies.

blairacuda

Technical User
Sep 3, 2009
51
US
Hello All,

I'm writing a small app that reads from an access database. I'm using a DataGridView to read/write to the database. I just noticed that users can add additional fields through the DataGridView by typing in the last line of the window (just as if they were in Access), but I don't want them to have that ability. I just want them to be able to edit the existing fields in the table.

Is there a way to prevent users from having the ability to add extra fields to the database while using DataGridView in my app?

Thanks in advance.

Chris Blair
Crystal, InstallShield, branching out in other programming realms.
 
wow! that is a perfect reference! thanks!

Chris Blair
Crystal, InstallShield, branching out in other programming realms.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top