469,898 Members | 1,417 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Datarow not created when setting cell value

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
1 1739
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.

Similar topics

reply views Thread by dudi | last post: by
5 posts views Thread by sdettmers | last post: by
11 posts views Thread by Tim Frawley | last post: by
6 posts views Thread by JIM.H. | last post: by
5 posts views Thread by Rainer Queck | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.