private int customerIDCounter; //Will be used for customer ID //CONSTRUCTOR public Customer_MainScreen() { InitializeComponent(); sql = new MySQLDatabaseDriver(); customerIDCounter = 0; customerList = new ArrayList(); //---STREAMREADER (MYSQL DATABASE -> ARRAYLIST -> DGV) sql.SelectAllCustomers(customerList); for (int i = 0; i < customerList.Count; i++) { Customer c = (Customer)customerList[i]; dgvCustomers.Rows.Add(c.CustomerName, c.CustomerPerson, c.CustomerNumber, c.CustomerEmail); } customerIDCounter = customerList.Count + 1; }