Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to preselect multiple items in listbox

Reply
Thread Tools

How to preselect multiple items in listbox

 
 
Isaac Wang via .NET 247
Guest
Posts: n/a
 
      04-27-2004
I am having trouble making preselections for the listboxes in a datagrid.


For each row, I have a listbox with selectionmode=multiple, which I bind to a datatable. However, when I used the SelectedValue for listbox, it will only allow to bind to one value? Does anyone know how to bind select multiple items for each listbox?

--------------------------------
From: Isaac Wang

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>VZnpiYWkiEaJu7hfTMO3xw==</Id>
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmluIFNvbmcsIE1DUA==?=
Guest
Posts: n/a
 
      04-27-2004
Hi, Isaac Wang

To bind Listbox to multiple records, your data source has to contain multiple values
Se
http://msdn.microsoft.com/library/de...ordcontrols.as

Bin Song, MCP
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Listbox move multiple selected items to second listbox K B ASP .Net 2 01-08-2007 11:16 AM
Can preselect databound listbox items Joel Barsotti ASP .Net Web Controls 0 01-04-2007 09:04 PM
How do I move all items in a listbox to another listbox kent ASP .Net 1 05-03-2004 12:17 AM
Looking in a cookie collection to preselect checklistbox items D. Shane Fowlkes ASP .Net 0 04-07-2004 03:14 PM
listbox control, how to dynamically preselect values Nik ASP .Net Web Controls 0 07-09-2003 07:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57