The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am trying to use a combobox to display one value but save another using the example in the documentation...
Private Sub Form1_Load(sender As Object, e As System.EventArgs) Me.gridDataBoundGrid1.DataSource = PrimaryTable Me.gridDataBoundGrid1.EnableAddNew = False
Dim gbc As GridBoundColumn = Me.gridDataBoundGrid1.Binder.InternalColumns(1) gbc.StyleInfo.CellType = "ComboBox" gbc.StyleInfo.DataSource = ForeignKeyTable gbc.StyleInfo.DisplayMember = "Name" gbc.StyleInfo.ValueMember = "CustID" gbc.StyleInfo.ShowButtons = GridShowButtons.ShowCurrentRow gbc.StyleInfo.HorizontalAlignment = GridHorizontalAlignment.Left End Sub
The combobox works as long as there is a match in against the display member. A problem occurs when the enters text that doesn't match. The column attempts to add the text anyway which causes a problem with the underlying datasource. Unfortunately, the control has it's own error handler so I am unable to deal with the situation. Any suggestions would be most helpful