Hi,
Using VS 2005 and Sql Server 2005. I've created a datagrid using the
wizard, and told it to generate insert and update statements. the datagrid
displays the data nicely, i can edit cells, and add new rows. but these
changes do not get posted to the actual database. there must be something
very simple i am missing -- please advise!
do i have to actually call the insert and update methods, or is there a way
to have any changes automaticalloy posted?
also -- tho i've been googling around, i'd appreciate any pointers to good
documentation on the whole datagrid area.
Thanks for any help!
Fred
Fanor - 26 May 2006 21:23 GMT
> Hi,
>
[quoted text clipped - 13 lines]
>
> Fred
you have to call bindingsource.endedit() on order to update
FredR - 30 May 2006 14:13 GMT
Hi and Thanks for your response.
I tried what you suggested, and I'm getting this error message:
"Update requires a valid UpdateCommand when passed DataRow collection with
modified rows."
any clues?
thanks!
Fred
>> Hi,
>>
[quoted text clipped - 15 lines]
>
> you have to call bindingsource.endedit() on order to update