05-15-2012, 02:18 PM
foreach (DataRow row in datatable.Rows)
{
ListViewItem item = new ListViewItem(
new string[] {
row["a_index"].ToString(),
row["a_level"].ToString(),
row["a_hitrate"].ToString()});
listView1.Items.Add(item);
}
That was close, but its much easyer.
foreach (DataRow row in datatable.Rows)
listBox1.Items.Add(row["a_index"] + " - " + row["a_name"]);
Personally i wouldnt use the datatables and such.
Although they were made for it i myself would prefer using generic lists and use my own querys

