N
nomenklatura
Hi,
in pocket pc i have a listview control on from..
And i wantto get data from sqlserver and add in listview this data
But i only fill listview with datareader:
While dr.Read()
lviNewItem.Text = dr.GetDateTime(0)
lviNewItem.SubItems.Add(dr.GetString(1))
Me.LWTeshisler.Items.Add(lviNewItem)
End While
so i have a problem , because webservice function return only dataset:
I have a webservice which read data from sqserver ,
<WebMethod()> _
Public Function GetData() As DataSet
...
return ds
end function
there is no problem
on pocket pc:
Dim ws As New webservice.service1
Dim sqlDS As System.Data.DataSet
Dim drTeshis As SqlCeDataReader
sqlDS = ws.GetData
ok.. but i couldn't fill listview this dataset, i necessery to datareader:
how can i convert dataset to datareader?
Or is this solution anyelse?
Thans for advance...
in pocket pc i have a listview control on from..
And i wantto get data from sqlserver and add in listview this data
But i only fill listview with datareader:
While dr.Read()
lviNewItem.Text = dr.GetDateTime(0)
lviNewItem.SubItems.Add(dr.GetString(1))
Me.LWTeshisler.Items.Add(lviNewItem)
End While
so i have a problem , because webservice function return only dataset:
I have a webservice which read data from sqserver ,
<WebMethod()> _
Public Function GetData() As DataSet
...
return ds
end function
there is no problem
on pocket pc:
Dim ws As New webservice.service1
Dim sqlDS As System.Data.DataSet
Dim drTeshis As SqlCeDataReader
sqlDS = ws.GetData
ok.. but i couldn't fill listview this dataset, i necessery to datareader:
how can i convert dataset to datareader?
Or is this solution anyelse?
Thans for advance...