|
-
Jun 26th, 2009, 12:37 PM
#1
Thread Starter
Addicted Member
DataGridView doesn't give values to DataSource
Hi there
I'm working in my own datagridview. I set AllowUserToAddRows = false and EditMode to EditOnEnter.
The way user can actually add rows is clicking a button or pressing insert key.
The thing is that when I try to update the source, all values of the new row added are null, so insert statement fails, because some fields doesn't accept them.
I try calling DataGridView.EndEdit() and DataGridView.ProcessDialogKey(Keys.Enter) but none of these worked.
When the view passes values to model? Wich is the way DataGridView to tell to the DataSource "hey, I've new values for you, take them!".
Best regards.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|