"Click" a datagridview row

John Cassell

Well-known member
Joined
Mar 20, 2007
Messages
65
Programming Experience
Beginner
Hi all,

could someone help me with this please..

I am programatically adding a new row to my datagridview and populating the columns with values. No problem.

But, unless I manually click on the added row with a mouse click, it does not save the row.

Could someone show me a method which in effect "Clicks" my new row instead of me having to do it myself?

Thanks for any replies.

John
 
got it sorted now

answer was

MyDataGridView.DataSource.EndEdit()

EndEdit didn't automatically appear through the intellisense feature so it threw me.

Thanks anyway.

John
 
Back
Top