public void ListeyiYenile()
{
try
{
Cursor.Current = Cursors.WaitCursor;
DataTable Dt = getDatatable();
ListKoli.Items.Clear();
for (int i = 0; i < Dt.Rows.Count; i++)
{
String[] Deger = new String[2];
Deger[0] = Dt.Rows[i]["StokKodu"].ToString();
Deger[1] = Dt.Rows[i]["StokIsmi"].ToString();
ListViewItem It = new ListViewItem(Deger);
if (i % 2 == 1)
It.BackColor = Color.MintCream;
ListKoli.Items.Add(It);
}
Cursor.Current = Cursors.Default;
}
catch (Exception Ex)
{
Cursor.Current = Cursors.Default;
MessageBox.Show(Ex.Message);
}
}