Jump to content

Insert blank row problem in Datagridview


Guest Ajay Jethani

Recommended Posts

Guest Ajay Jethani

Hi,Can anyone help me resolve this problem in Windows .Net 2.0 DataGrid View problem.I Have DataGridview and Linkbutton Onclicking on Linkbutton it shows the blank row in DataGridView which is fine.Now i have other controls on which Databindings are applied which shows the values populated in Datagridview selected row.(Considering the binding source Data comes from SQL 2005 database)Now problem is that when i am inserting the record it shows blank which is also fine...but it also allows inserting mutilple blank rows, when i again click on Insert linkButtonthen it is creating problem. i.e shows the blank rows in DatagridGridview.... I have used Acceptchanges() and RejectChanges() method of Dataset to reflect the changes in Datagridview.Thanks,Ajay

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...