// // List companies // private void loadClientList() { elementSourceDataTable.Clear(); var compList = new ClientList(_userID); compList.List(); foreach (Client Client in compList.clientList) { DataRow elementRow = elementSourceDataTable.NewRow(); elementRow["UID"] = Client.UID; elementRow["ABN"] = Client.ABN; elementRow["Name"] = Client.Name; elementRow["Phone"] = Client.Phone; elementRow["Fax"] = Client.Fax; elementRow["EmailAddress"] = Client.EmailAddress; elementRow["MainContactPersonName"] = Client.MainContactPersonName; elementRow["Address"] = Client.Address; elementSourceDataTable.Rows.Add(elementRow); } }