selectedindexchanged

0 views
Skip to first unread message

kanna

unread,
Aug 28, 2008, 3:55:43 PM8/28/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi
iam using combox to selected the customername and custid i have ten
records in the combo box he customer name have custid if i select
selected item 3 its shows the last record that is 10 th record

abhinandan

unread,
Aug 29, 2008, 12:44:57 AM8/29/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
paste your combo_selectedIndexchanged(,,) code.

ramireddy dasaradha

unread,
Aug 30, 2008, 8:12:40 AM8/30/08
to DotNetDe...@googlegroups.com
if it is only for particular item or for any item?
 
if it is for particular item, there may be chance that 3rd item value and 10th item value may be same. in that case also it behaves like that.

Andrew

unread,
Aug 31, 2008, 5:01:47 AM8/31/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Does this have anything to do with the "sorted" attribute on the combo-
box?

~Andrew

On Aug 30, 1:12 pm, "ramireddy dasaradha"
> > selected item 3 its shows the last record that is 10 th record- Hide quoted text -
>
> - Show quoted text -

Jim Losi

unread,
Sep 1, 2008, 4:28:59 AM9/1/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listcontrol.selecteditem.aspx

that is by design. If you have multiple selections, you'll have to
loop through the items collection to find which ones are selected. A
For each loop should do it, or if you're using LINQ, you can just
query the collection.
Reply all
Reply to author
Forward
0 new messages