Hello,
I try to develop an application for windows mobile 5.0.
So I use SQLcompact.sdf file for storing list of data that I would like to past in my list boxes. I am not able to achieve it.
Herewith my code:
Private Sub frm_BGtms_SetTime_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If BGtmsDataSetUtil.DesignerUtil.IsRunTime Then
Me.Wrk_hrs_tskTableAdapter.Fill(Me.BGtmsDataSet.wr k_hrs_tsk)
End If
Dim currentTaskToShow As BGtmsDataSet.wrk_hrs_tskRow
Dim tempString As String
With Me.WrkhrstskBindingSource
.MoveFirst()
While .Position < .Count - 1
.MoveNext()
currentTaskToShow = CType(CType(Me.WrkhrstskBindingSource.Current, DataRowView).Row, BGtmsDataSet.wrk_hrs_tskRow)
tempString = currentDataToShow.ItemArray(1)
End While
End With
The problem is that DataRowView is not defined. If I am able to get the field value (my tempString), I will add it to my listbox without problem.
Any help is highly appreciated
Regards,
phm