private void button6_Click(object sender, EventArgs e) { string newFriend = SQLManager.ProfileNameFromUID(SQLManager.UserIDFromName(textBox9.Text)); if (newFriend != null) { dataGridView4.Rows.Add(newFriend); } }