LCKB
[C#] Import list of the characters in DB to listbox - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196)
+---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192)
+---- Thread: [C#] Import list of the characters in DB to listbox (/showthread.php?tid=2234)



- Paramount - 07-21-2013


Hey guyz! Im interested how to import the list of the chars in DB to listbox?

 

Thanks in advanice!




- someone - 07-21-2013


You can simply add it:

Listbox1.Items.Add(item);
or
Listbox1.Items.Insert(index. item)

Another is to put your datasource into your listbox:

DataTable dt = new DataTable();
dt.Load(dbreader);
listBox1.DataSource =dt;
listBox1.DisplayMember = "test_column";