Combo Question


Author
Message
Michael Reese
Michael Reese
StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
I have a combo and I am able to successfully fill it utilizing a datatable. I also have it attache to a BO and Column. The problem is that I am not able to populating the bo?

*********************

Private Sub PopulateReminderCombo()

Dim loTable As New DataTable()

Dim loRow As DataRow

'-- Create the table structure

loTable.Columns.Add("Display", GetType(String))

loTable.Columns.Add("DropDown", GetType(String))

loTable.Columns.Add("Value", GetType(TimeSpan))

'-- Add some rows

loRow = loTable.NewRow()

loRow.Item("Display") = "0 minutes"

loRow.Item("DropDown") = "0 minutes"

loRow.Item("Value") = (New TimeSpan(0, 5, 0))

loTable.Rows.Add(loRow)

loRow = loTable.NewRow()

loRow.Item("Display") = "5 minutes"

loRow.Item("DropDown") = "5 minutes"

loRow.Item("Value") = (New TimeSpan(0, 5, 0))

loTable.Rows.Add(loRow)

*******************************************

' Me.cboReminder.Items.Clear()

'-- Associate the table with the combos data source

cboReminder.DataSource = loTable

cboReminder.DisplayMember = "Display"

cboReminder.ValueMember = "Value"

 

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search