By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,962 Members | 1,998 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,962 IT Pros & Developers. It's quick & easy.

Datarow not created when setting cell value

P: 2
I want to set the value of a cell in a datagridview.

DatagridView.CurrentRow.Cells(CEllName).value = "Blabla"

When I do this in code and when it's the first cell I edit in a new row, it does not Bind to a new datarow.
DatagridView.CurrentRow.DataBoundItem is nothing
A new row is added only if I type (keyboard) anything in the cell, but programmatically, it does not add the row.

How can I tell the datagridview, in code, that it must become a new row?
Apr 27 '07 #1
Share this Question
Share on Google+
1 Reply

P: 2
Can anyone help, please?

Have not found any solution... :(
May 1 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.