Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to usage of datagridview. I'm displaying only one column and hiding another column from database in datagridview, so I have only one column, but many rows. I want to add an empty row on button click after databound and want to enter data in that newly added row(focus should be on added row), on clicking row with value I should be able to edit what is already there and similarly able to delete on selecting the row clicking the delete button. I searched in google but everything is quite confusing can anyone help me.

Thanks in Advance
Posted

Its good that you searched in google, you must have found many links.
Tell us what you find confusing there?
Are you getting any errors while implementing that code?
 
Share this answer
 
Comments
CyborgForever 19-Aug-11 5:40am    
Most of them are posting about Datagrid, I want it for DatagridView I'm using VS 2010 Express
Hi dear,

Go through google you will find out lots of links....

Well try for this:

http://geekswithblogs.net/dotNETvinz/archive/2009/02/22/gridview-insert-edit-update-and-delete--the-ado.net-way.aspx[^]
 
Share this answer
 
Comments
kranthi.oru 19-Aug-11 4:11am    
hello saxena he asked about DataGridview not Gridview.

dataGridview means windows application. Gridview means web application.
let u know the difference
CyborgForever 26-Aug-11 2:27am    
I want it for datagridview for windows application using C#

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900