How to show more than one database collumns in a listbox
-
Hello all, Does anyone know how to show more than one database collumns in a listbox?? In documentation i read that it was not possible bus is there anyone who knows a backdoor for it? Thanks.
-
Hello all, Does anyone know how to show more than one database collumns in a listbox?? In documentation i read that it was not possible bus is there anyone who knows a backdoor for it? Thanks.
-
Use a ListView. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
Use a ListView. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
-
Hello all, Does anyone know how to show more than one database collumns in a listbox?? In documentation i read that it was not possible bus is there anyone who knows a backdoor for it? Thanks.
if u have a dataset(say myDataset) populated with your records then try this....(code is in vb.net)
Dim lvItem As ListViewItem For i As Integer = 0 To myDataset.Tables(0).Rows.Count - 1 lvItem = New ListViewItem(myDataset.Tables(0).Rows(i).Item(0)) For j As Integer = 0 To NumberOfSelectedField lsItem.SubItems.Add(CStr(myDataset.Tables(0).Rows(i).Item(j + 1))) Next myListView.Items.Add(lvItem) Next
Tirtha Miles to go before I sleep
-
if u have a dataset(say myDataset) populated with your records then try this....(code is in vb.net)
Dim lvItem As ListViewItem For i As Integer = 0 To myDataset.Tables(0).Rows.Count - 1 lvItem = New ListViewItem(myDataset.Tables(0).Rows(i).Item(0)) For j As Integer = 0 To NumberOfSelectedField lsItem.SubItems.Add(CStr(myDataset.Tables(0).Rows(i).Item(j + 1))) Next myListView.Items.Add(lvItem) Next
Tirtha Miles to go before I sleep