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
Data Entry using DataGrid
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
joseph antony2 pointsPosted May 25, 2006, 6:55 AM EDT
pedaammulu32 pointsPosted May 26, 2006, 7:30 PM EDT
Pravin Hegde2 pointsPosted May 27, 2006, 12:30 AM EDT
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