hello all..
Could you please help me on this..
I want a datagrid for data entry, which has a submit button in its footer.
On clicking on this submit button, the data will go directly to the database.
This all to be done in VB.Net
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pravin HegdePosted May 27, 2006, 4:30 AM
dim rowno as integer = dataset.row.count
for rowno = 0 to rowno 'creating a loop
dim strval as string=datagrid.items(row#,coloum1).tostring
dim insert as string = "insert into table(field)values(strval)'write the insert command here
cmd1 = new odbcommdbuilder(insert)
cmd1.nonexecutereader
next
hope it helps you
take care
Regards
pedaammuluPosted May 26, 2006, 11:30 PM
joseph antonyPosted May 25, 2006, 10:55 AM