S
shapper
Hello,
I created a Repeater at runtime with an AccessDataSource.Everything
Works fine!
Now I need to use the same repeater but with a DataSource created in my
VB.Net code.
I created a DataView but the Repeater doesn't show anything!
I don't get any error so I have no idea what is going on.
This is my function which creates the datasource which in this moment
has only one record:
Function DataSource() As ICollection
' Define channels data table
Dim dt As DataTable
' Create channels data table
dt = New DataTable
dt.Columns.Add(New DataColumn("ChannelId", GetType(String)))
dt.Columns.Add(New DataColumn("ChannelName", GetType(String)))
' Add news channel data row
Dim dr As DataRow
dr = dt.NewRow
dr(0) = "News"
dr(1) = "Noticias"
dt.Rows.Add(dr)
' Return RSS channel dataview
DataSource = New DataView(dt)
End Function
Could someone please help me out?
Thanks,
Miguel
I created a Repeater at runtime with an AccessDataSource.Everything
Works fine!
Now I need to use the same repeater but with a DataSource created in my
VB.Net code.
I created a DataView but the Repeater doesn't show anything!
I don't get any error so I have no idea what is going on.
This is my function which creates the datasource which in this moment
has only one record:
Function DataSource() As ICollection
' Define channels data table
Dim dt As DataTable
' Create channels data table
dt = New DataTable
dt.Columns.Add(New DataColumn("ChannelId", GetType(String)))
dt.Columns.Add(New DataColumn("ChannelName", GetType(String)))
' Add news channel data row
Dim dr As DataRow
dr = dt.NewRow
dr(0) = "News"
dr(1) = "Noticias"
dt.Rows.Add(dr)
' Return RSS channel dataview
DataSource = New DataView(dt)
End Function
Could someone please help me out?
Thanks,
Miguel