This is a migrated thread and some comments may be shown as answers.

RadComboBox with images

1 Answer 139 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Erik Assunção
Top achievements
Rank 1
Erik Assunção asked on 15 Jul 2009, 11:34 PM
Hi!

I've a RadComboBox wich is receiving data from database. I'd like know how to do for show images too?
I'm use this code:

Dim conn As New SqlCeConnection     
        Dim cmd As New SqlCeCommand     
        conn.ConnectionString = "datasource = " & System.AppDomain.CurrentDomain.BaseDirectory & "DSDB.sdf"    
        cmd.Connection = conn     
        cmd.CommandText = "Select Name from Visitas Where Enable = '1'"    
        Dim da As New SqlCeDataAdapter(cmd)     
        Dim dt As New DataTable     
        conn.Open()     
        da.Fill(dt)     
        conn.Close()     
        MDIParent1.RadComboBox1.DisplayMember = "Name"    
        MDIParent1.RadComboBox1.ValueMember = "ID"    
        MDIParent1.RadComboBox1.DataSource = dt   

Thank you!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Jul 2009, 10:03 AM
Hi Erik,

Checkout the following documentation links which describes how to assign images to RadComboBox. I hope these links would be of help.
Assigning Image Data From a Database
Tutorial: Assign Image Data From Database

-Shinu.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Erik Assunção
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or