Hi,
Try
sql = "SELECT Currency.ID, [Code] + ' - ' + [Country] AS Curr, Currency.Code, Currency.Numeric, Currency.Decimal FROM [Currency]"
Dim tbl As New DataTable()
If con.State = ConnectionState.Closed Then con.Open()
cboCurr.DataSource = Nothing
da = New OleDb.OleDbDataAdapter(sql, con)
da.Fill(tbl)
cboCurr.ValueMember = "ID"
cboCurr.DisplayMember = "Curr"
cboCurr.DataSource = tbl
cboCurr.Text = "INR - INDIA"
cboCurr.DropDownListView.ItemHeight = 23
Catch ex As Exception
ShowMsg(ex.Message, "Oh snap!", MsgType.Critical, MsgButton.OkOnly)
Finally
con.Close()
End Try
===================================================
Without selection from dropdown......
Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click
MsgBox(cboCurr.SelectedValue)
End Sub
=====================================================
Selection from Dropdown
Private Sub cboCurr_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboCurr.SelectedIndexChanged
MsgBox(cboCurr.SelectedValue)
End Sub
Recommended approach - exe will perform automatic configuration.
Please find the patch setup from below location:
Please find the patch assemblies alone from below location:
Assemblies Link: https://syncfusion.com/Installs/support/patch/19.1.0.54/1347654/F163466/SyncfusionPatch_19.1.0.54_1347654_4052021103637918_F163466.zip
|
Recommended approach - exe will perform automatic configuration.
Please find the patch setup from below location:
Patch link :
Please find the patch assemblies alone from below location:
Assemblies Link:
Nuget link:
|