Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 17th, 2004, 02:49 AM
Authorized User
 
Join Date: Aug 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Alcapone
Default ListBox MultiColum

Is it possible to show multiple values from a select statement into an listbox. If so how??

Thanx
 
Old August 17th, 2004, 07:03 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

I guess u make it difficult! U can make ur select combined of ur multiple fields.
but in normal I dont think so, u can only set a feild of DataSet to show in listbox AS a DisplayMember. thats why I say make ur select combined of ur multiple fields.
HTH.

Always:),
Hovik Melkomian.
 
Old August 17th, 2004, 10:50 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What type of application? WebForm/WinForm? (No, in the case of a web form. Well not columnar display anyway.)
 
Old August 18th, 2004, 02:19 AM
Authorized User
 
Join Date: Aug 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Alcapone
Default

Must thanks to those how replied. Here is some more info about the question.

I am trying to create an reservation program. I want to show all appointments off the selected day into an listbox. If people click on an item than is shows more details about the appointment.

I red something about using vTabs in the displaymember but this gives the following "error" in the listbox "system.dataview". Maybe some of you have a better idea about showing the appointments.
 
Old August 18th, 2004, 08:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Sure- you should use a grid control- nest them if you want to hide details... Many 3rd party controls will support doing this easily... I'd search google..

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old August 18th, 2004, 09:23 AM
Authorized User
 
Join Date: Aug 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Alcapone
Default

I looked at datagrid control and with some modifications I think it will work fine. Thanx!!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple Listbox values in another listbox terryv Excel VBA 0 June 27th, 2007 07:01 AM
ListBox kanoorani Beginning VB 6 4 September 12th, 2006 12:28 PM
Help with listbox MMJiggy62 Beginning VB 6 5 July 11th, 2006 10:56 PM
About listbox csc820203 C# 1 April 29th, 2004 06:17 AM
I'm back :) Listbox var from listbox MichaelTJ .NET Web Services 2 October 21st, 2003 07:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.