The question is, what is the best way to I populate comboxes using Strataframe in those cases?
TIA,
Alex
You can use any data type you need as it relates to binding. In this example you may not want to use an enum, as these will always be stored as an integer. You will want to create your data source manually:
'-- Create the columnsmyTable.Columns.Add("display",GetType(String))myTable.Columns.Add("value", GetType(String))
'-- Then populate your tablenewRow = MyTable.NewRow()newRow.Items("display") = "Apple"newRow.Items("value") = "A"MyTable.Rows.Add(newRow)
'-- Once populated, set the comboMyCombo.DisplayMember = "display"MyCombo.ValueMember = "value"MyCombo.DataSource = MyTable
You will bind to the combo just as you would for an enum, the difference is that the SelectedValue or value member of the combo will bind to the [value] field in the table which you have defined as a string, which in return will allow you to bind to a character field, which ultimately gets saved back to the database as character. Hope this helps.