private void ListemiGetir() { DataTable dtt = FStok.sekstre(); for (int i = 0; i < dtt.Rows.Count; i++) { ListViewItem lolo = new ListViewItem(dtt.Rows[i][1].ToString()); lolo.SubItems.Add(dtt.Rows[i][2].ToString()); lolo.SubItems.Add(dtt.Rows[i][3].ToString()); lolo.SubItems.Add(dtt.Rows[i][4].ToString()); listView1.Items.Add(lolo); } }
private void StoklariGetir() { DataTable dt = FStok.sekstre(); dataGridView1.DataSource = dt; dataGridView1.Columns[0].HeaderText = "stokid"; dataGridView1.Columns[1].HeaderText = "Stok Kodu"; dataGridView1.Columns[2].HeaderText = "Stok Adı"; dataGridView1.Columns[3].HeaderText = "Stok Açıklama"; dataGridView1.Columns[4].HeaderText = "Stok Miktar"; dataGridView1.Columns[0].Visible = false; dataGridView1.Columns[5].Visible = false; }