Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
GeneralRe: enum problem in C# Pin
Gareth H25-Mar-08 3:59
Gareth H25-Mar-08 3:59 
GeneralRe: enum problem in C# Pin
PIEBALDconsult25-Mar-08 4:48
mvePIEBALDconsult25-Mar-08 4:48 
GeneralRe: enum problem in C# Pin
Gareth H25-Mar-08 4:54
Gareth H25-Mar-08 4:54 
GeneralRe: enum problem in C# Pin
Guffa25-Mar-08 5:11
Guffa25-Mar-08 5:11 
GeneralRe: enum problem in C# Pin
Pete O'Hanlon25-Mar-08 5:14
mvePete O'Hanlon25-Mar-08 5:14 
GeneralRe: enum problem in C# Pin
Gareth H25-Mar-08 5:43
Gareth H25-Mar-08 5:43 
GeneralRe: enum problem in C# Pin
Daniel Grunwald25-Mar-08 18:21
Daniel Grunwald25-Mar-08 18:21 
QuestionHow to Set multiple items as selected in a ListBox with c# [modified] Pin
waldj200025-Mar-08 2:44
waldj200025-Mar-08 2:44 
I have a ListBox set as Multiselect. I am populating the table thruough asp.net code. But I am using another dataset to get the items that should be selected. The only item that ends up selected is the last item in the dataset, and I know in several cases there are at least two items that should be selected. The code I am using for setting the selected items is:

DataSet ds1 = SqlHelper.ExecuteDataset(ConnStr, "StoredProd", Parm);

lbRequestTime.SelectionMode = ListSelectionMode.Multiple;

foreach (DataRow row in ds1.Tables[0].Rows)
{
lbRequestTime.SelectedValue = row["PerfTimeId"].ToString();
}

Any help on how to get the Mulitple selected items selected would be great.

Thanks, Doug

modified on Tuesday, March 25, 2008 9:33 AM

GeneralRe: How to Set multiple items as selected in a ListBox with c# Pin
Vimal Raj25-Mar-08 3:54
Vimal Raj25-Mar-08 3:54 
GeneralUse Multiple Sitemap file in ASP.NET Problem Pin
SathyaSiva25-Mar-08 2:41
SathyaSiva25-Mar-08 2:41 
GeneralRe: Use Multiple Sitemap file in ASP.NET Problem Pin
Pete O'Hanlon25-Mar-08 3:01
mvePete O'Hanlon25-Mar-08 3:01 
GeneralRe: Use Multiple Sitemap file in ASP.NET Problem Pin
SathyaSiva25-Mar-08 3:09
SathyaSiva25-Mar-08 3:09 
GeneralClient Application Services... Pin
Illegal Operation25-Mar-08 2:34
Illegal Operation25-Mar-08 2:34 
GeneralUse Multiple Sitemap file in ASP.NET Problem Pin
SathyaSiva25-Mar-08 2:30
SathyaSiva25-Mar-08 2:30 
GeneralUse Multiple Sitemap file in ASP.NET Pin
SathyaSiva25-Mar-08 2:28
SathyaSiva25-Mar-08 2:28 
QuestionCom interop -> IUnknown from hWnd Pin
Chris Mierzejewski25-Mar-08 1:55
Chris Mierzejewski25-Mar-08 1:55 
QuestionWhat Process at which port? Pin
ptr2void25-Mar-08 1:07
ptr2void25-Mar-08 1:07 
GeneralGenerate Not Repeated Random Integer Values Pin
Edwin Syarief25-Mar-08 0:06
Edwin Syarief25-Mar-08 0:06 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Gareth H25-Mar-08 0:14
Gareth H25-Mar-08 0:14 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Christian Graus25-Mar-08 0:18
protectorChristian Graus25-Mar-08 0:18 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Christian Graus25-Mar-08 0:15
protectorChristian Graus25-Mar-08 0:15 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Vikram A Punathambekar25-Mar-08 2:31
Vikram A Punathambekar25-Mar-08 2:31 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Russell Jones25-Mar-08 3:51
Russell Jones25-Mar-08 3:51 
GeneralRe: Generate Not Repeated Random Integer Values Pin
Christian Graus25-Mar-08 10:03
protectorChristian Graus25-Mar-08 10:03 
QuestionCreate a grid of radiobutton on the fly Pin
Desmond Lim24-Mar-08 23:59
Desmond Lim24-Mar-08 23:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.