At the least.. after you line:
objDataset1
find the objDataset1.GetXml()
and examine it in nodepad.exe . That will help ....
You need to decouple the DataSet get, and the Bind() method to see which one
is killing it.
"Aron.B" <d.********@cergis.com> wrote in message
news:OQ*************@TK2MSFTNGP03.phx.gbl...
That is my code, but I think the problem is not in my code.
Dim cnExcel As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source = " & sFile & ";Extended Properties=Excel 8.0;")
cnExcel.Open()
Dim cmdExcel As New OleDbCommand("SELECT * FROM [" &
lookup.Rows(0)("TABLE_NAME") & "]", cnExcel)
Dim objAdapter1 As New OleDbDataAdapter
objAdapter1.SelectCommand = cmdExcel
Dim objDataset1 As New DataSet
objAdapter1.Fill(objDataset1, "XLData")
DataGrid1.DataSource = objDataset1
DataGrid1.DataBind()
I can see all the columns with all the data except the data from one of
the columns. And the strange think is that if I change the data in this column
from int to string, it is working perfect.
There is no error, just the data is not appear
Any ideas?
Thanks in advance