One Listbox to another with ds
One Listbox to another with ds
One Listbox to another with ds
One Listbox to another with ds
One Listbox to another with ds
One Listbox to another with ds One Listbox to another with ds One Listbox to another with ds One Listbox to another with ds One Listbox to another with ds One Listbox to another with ds One Listbox to another with ds One Listbox to another with ds
One Listbox to another with ds One Listbox to another with ds
One Listbox to another with ds
Go Back  Xtreme Visual Basic Talk > > > One Listbox to another with ds


Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2015, 03:57 AM
R4messes R4messes is offline
Newcomer
 
Join Date: Jul 2015
Posts: 1
Default One Listbox to another with ds


Hello i am having problema passing from one listbox to another, please if anyone can help me, I am using visual Studio 2003.

Thank you Very much

Protected WithEvents lstCampos_CritOrd As System.Web.UI.WebControls.ListBox
Protected WithEvents lstCampos_CritOrdSel As System.Web.UI.WebControls.ListBox
Protected WithEvents btnPrueba As System.Web.UI.WebControls.Button


dsMOCS = objDatos.EjecutarProcedimientoConResultadoDS(strConexion, "GC_ObtenerListadoMOCsConvenio", valoresparametros)
lstCampos_CritOrd.DataValueField = dsMOCS.Tables(0).Columns(1).ToString()
lstCampos_CritOrd.DataTextField = dsMOCS.Tables(0).Columns(2).ToString()
lstCampos_CritOrd.DataSource = dsMOCS.Tables(0)
lstCampos_CritOrd.DataBind()

Protected Sub btnPrueba_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrueba.Click

Dim n As Integer
For n = 0 To lstCampos_CritOrd.Items.Count - 1
lstCampos_CritOrdSel.Items.Add(lstCampos_CritOrd.Items.Item(n))
Next

End Sub
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
One Listbox to another with ds
One Listbox to another with ds
One Listbox to another with ds One Listbox to another with ds
One Listbox to another with ds
One Listbox to another with ds
One Listbox to another with ds One Listbox to another with ds One Listbox to another with ds One Listbox to another with ds One Listbox to another with ds One Listbox to another with ds One Listbox to another with ds
One Listbox to another with ds
One Listbox to another with ds
 
One Listbox to another with ds
One Listbox to another with ds
 
-->