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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGridView Insert, Delete, Edit Help

Status
Not open for further replies.

cfdave

Programmer
Apr 25, 2006
9
US
I'm new to VB.net 2008 and I'm trying to use a DataGridView Control to Add/Edit/Delete records in a simple database table. I used the wizard to create the datagridview and it created a dataset a bindingsource and a tableadaptor.

When i run my project, data that is in the database table is displayed correctly, but I can't add/edit/delete.

What events/actions do I need to perform to add these capabilities?

 
You shouldn't have to do anything, by default everything should be editable. Some possible things to check.

Make sure the DataGridView's ReadOnly property is set to false.

Make sure the DataGridView's AllowUsersToDeleteRows & AllowUsersToAddRows is set to True

Make sure your DataBase is not set to ReadOnly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top