[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Denis Cilliers

6/7/2002 6:29:00 PM

Ok so I am new to mobile dev

I have a list item on my mobile page, and the code behind looks like this

Me.lstIncome.DataSource = MyReportSource.CreateMobileSource()
Me.lstIncome.DataBind()
Me.lstIncome.Visible = True

Why does the list not show on the mobile form at run time, am I missing
something?

The function MyReportSource.CreateMobileSource() looks like this

Function CreateMobileSource()

Dim MyDataTable As New DataTable()
Dim MyDataview As New DataView(MyDataTable)
Dim MyDataRow As DataRow

'Build the Datatable Columns
MyDataTable.Columns.Add(New DataColumn("Text", GetType(String)))
MyDataTable.Columns.Add(New DataColumn("Value", GetType(String)))

'New Row
MyDataRow = MyDataTable.NewRow()

MyDataRow(0) = "Income ="
MyDataRow(1) = "125.00"

Return MyDataview

End Function