Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Listbox Question

 

I have 2 columns that I need to return from SQL into a

listbox.

 

UNIQUEID , FIRSTNAME

 

FirstList.Items.Add(myRow.ItemArray.GetValue(5).ToString

());

 

The code above only adds 1 item to a row...

 

Anyone know how to add 2 entries for every row in the

listbox?

 

niv

  • 2 weeks later...
  • *Experts*
Posted
You should look at the ListView control (read about it in the MSDN). It supports multiple columns, like the file explorer pane in My Computer, when you're in Detail View.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...