Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7491083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:52:16+00:00 2026-05-29T15:52:16+00:00

Hi Im using devexpress . I want to know how to get the value

  • 0

Hi Im using devexpress .
I want to know how to get the value member value in lookupEdit.
I set the DisplayMember as prior to SupplierName
And ValueMember to SupplierID

The code below displays both and SupplierName as the text in lookupedit..
what I want is to keep the SupplierName as the Display but I want to get the supplierID when saving it to database

Scenario:

I want the value of the Supplier ID for example 001 – Supplier1 The
display text in the look up is Supplier1 what I want is the 001

 Private Function LoadSupplierData()
    Dim bResult As Boolean
    Dim SQLcmd As New System.Text.StringBuilder
    SQLcmd.AppendLine("SELECT SupplierID,SupplierName ")
    SQLcmd.AppendLine("FROM Supplier ")
    SQLcmd.AppendLine("WHERE Status='Active'")
    Try
        Using SQLconnect As New SqlConnection(g_constring)
            Using SQLadapter As New SqlDataAdapter(SQLcmd.ToString, SQLconnect)
                Dim ds As New DataSet
                SQLadapter.Fill(ds, "SupplierDetails")
                Dim dvm As DataViewManager = New DataViewManager(ds)
                dvMain = dvm.CreateDataView(ds.Tables("SupplierDetails"))
            End Using
        End Using
        txtSupplier.Properties.DataSource = dvMain
     Catch ex As Exception
        MessageBox.Show(ex.Message.Trim, "Error in database", MessageBoxButtons.OK, MessageBoxIcon.Stop)
        bResult = False
    End Try
    Return bResult
End Function
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:52:17+00:00Added an answer on May 29, 2026 at 3:52 pm

    To get the selected value you could simply do txtSupplier.EditValue

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using DevExpress LookUpEdit control in my application. I want to set the datasource
I am using DevExpress XtraGrid in c#.NET application. I want to disable or set
I am using DevExpress Components controls.I want to create controls from string Value like
Hai, Am using DevExpress LookupEdit in C#.NET application.I want to clear all items in
I am using Devexpress 11.2 In a XtraGridView I want to show Summary SUM
I am trying to port some code using DevExpress XtraGrid to Wpf. What is
Hi I am using devexpress and I set the mask type to numeric and
I am using DevExpress.XtraEditors.LookUpEdit to display the information about the classes available. Currently it
I try using Devexpress Layout-Control (For costume usage). So I want add all item's
I'm using DevExpress's GridLookUpEdit control in a grid and I want the contents of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.