private void fSpisDokProgram() { fbLogowanie = new fblog(); List<string>[] lstDokumenty = fbLogowanie.fKody(); dataGridView3.Rows.Clear(); for (int i = 0; i < lstDokumenty[0].Count; i++) { int number = dataGridView3.Rows.Add(); dataGridView3.Rows[number].Cells[0].Value = lstDokumenty[1][i].ToString(); dataGridView3.Rows[number].Cells[1].Value = lstDokumenty[2][i].ToString(); } }