» »

[VB.net] datacombobox

[VB.net] datacombobox

korenje3 ::

A mogoče ve, kako bi dal niz v datacombobox.

Imam array v katerem so classi. Ti classi imajo .row as datatable
sedaj bi pa rad bindal column iz teh classov na datacombobox.
i9-12900k; 32GB DDR5-6000 CL36; Nvidia RTX 3080 ti;
Gigabyte Aorus z690 master; Be Quiet Dark Power 12 1000W

korenje3 ::

Nevermind sem že rešil tako da sem naredil dataview.

   Private Function combobox1datasource() As DataView
        Dim dt As New DataView(fxts.users)
        dt.RowFilter = fxts.c_active.DataPropertyName & " = 1"
        Return dt
    End Function

        With ComboBox1
            .Items.Clear()
            .DataSource = combobox1datasource()
            .FlatStyle = FlatStyle.Flat
            .DropDownStyle = ComboBoxStyle.DropDownList
            .DisplayMember = fxts.c_ID.DataPropertyName
            .ValueMember = fxts.c_hash.DataPropertyName
        End With
i9-12900k; 32GB DDR5-6000 CL36; Nvidia RTX 3080 ti;
Gigabyte Aorus z690 master; Be Quiet Dark Power 12 1000W


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

[VB] datagridview

Oddelek: Programiranje
351930 (1313) korenje3
»

Baza & c#

Oddelek: Programiranje
214152 (3210) xardas
»

DataView, DataTable, DataSet

Oddelek: Programiranje
91151 (902) detroit
»

[C#] DATA GRID VIEW

Oddelek: Programiranje
131937 (1817) Kekec
»

[ASP.NET]

Oddelek: Programiranje
61319 (1173) OmegaM

Več podobnih tem