Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Copying one WPF combobox in another without iteration

$
0
0

hi all of you,

Code-behind:

        Me.DatosPanel1.Items.Clear()
        newClient = New clsClientes()

        For Each dr As DataRow In newClient.DevuelveTablasPaneles().Rows
            Me.DatosPanel1.Items.Add(dr.Item("DESCRIPCION").ToString.Trim)
        Next

Ok, it does work fine.

But I would need to fill with the same data other 7 combobox.. in the same XAML view.

How can I do that without calling again my class method "DevuelveTablasPaneles" which -obviously- call to my Sql Server Database??

I've tested this without succesful results:

      Me.DatosPanel2.Items.Add(Me.DatosPanel1.Items)

Thanks in advance for your comments,


Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF/SilverLight projects.



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>