Combobox


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 am getting the above error. I am maintaining chart information in a table and one of the columns is Chartype. In my form, I have the following code to display charttypes in the combobox. When I load the form or select a chart type, I get the error above. The column is not null and I have taken care of that in the BOMapper.

My combobox is bindingfield is configure to the ChartType column and businessobject is the BOChartsInventory1.

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

Dim chartTypes As String() = System.Enum.GetNames(GetType(ChartType))

Dim ct As String

For Each ct In chartTypes

Me.cboChartype.Items.Add(ct)

Next ct

Me.cboChartype.SelectedValue = Me.cboChartype.Items(Me.cboChartype.FindString(System.Enum.GetName(GetType(ChartType), Me.chrtsMain.AreaChart.LineDrawStyle), 0))

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

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