Visual Basic .NET » Windows Forms
Excel file processing -- mrki --


I also have same problem. Please, give us oldedbConnection.String of your working code.
I thing that there is a problem.

10x

Pavi wrote:
Well I am not sure were could be the error.I used excel and this is
what I wrote to perform the action to pop data into grid.

Sub popgrid()
Dim con as new oledb.oledbConnection("Provider...)
con.open()
dim cmd as new oledb.oledbcommand(select * from table",con)
dim da as new oledb.oledbDataadapter(cmd)
dim ds as new dataset()
da.fill(ds)
datagrid.datasource = ds
con.close

for me this worked out.Hope this is helpful.

Pavi

 

[Submit Comment]Home