borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Publishing worries)Next Topic (get pages count in Word/Point?) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : how to upadte REcord from datagrid??
Poster Message
rtbuquia
Level: Professor

Registered: 29-05-2003
Posts: 90

icon how to upadte REcord from datagrid??

hi good day
    Im using stored procedure to retrieve data from MSQL
and load it to datagrid,Im trying to update record from datagrid to  the database it prompt me with this error...

"Dynamic SQL Generation for the update command is not supported against a SelectCommand that does not return any key column information"  
What is the reason for this error?and how to fix it??
                  



                                                ROy

[Edited by rtbuquia on 18-07-2005 at 06:47 PM GMT]

____________________________
rtbuquia

18-07-2005 at 06:46 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: how to upadte REcord from datagrid??

Most probably either you didnt define a primary key in the table, or you didnt generate UPDATE statement correctly.

____________________________
If you find the answer helpful, please mark this topic as solved.

18-07-2005 at 12:22 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : how to upadte REcord from datagrid??
Previous Topic (Publishing worries)Next Topic (get pages count in Word/Point?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder