Aha!! Just checking! Thanks
-----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Jefferies Sent: 29 May 2002 11:50 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] DropDownList Sorry. I just cribbed from an earlier project of mine, which used a string array for the items collection. -----Original Message----- From: Wayne Lee [mailto:[EMAIL PROTECTED]] Sent: 29 May 2002 11:17 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] DropDownList ? The contains requires a listitem object and not a string/int though? Or have you assumed that the customerid below is a listitem object? -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Jefferies Sent: 29 May 2002 10:20 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] DropDownList if (dropdown.Items.Contains(customerid)) dropdown.SelectedIndex = dropdown.Items.IndexOf(customerid); Paul Jefferies Adastra Software Ltd www.adastra.co.uk You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.