I got a list of 'word' objects called 'data', I got a function that edits one element in this list and refreshes the DataGridView fine, but when i try to add an item from it and execute a Refresh(), it doesn't add it to the grid.
public void edit (string en, string fr, int index)
{
data[index].english = en;
data[index].french = fr;
wordGrid.Refresh();
} // Currently works
private void quickAddButton_Click(object sender, EventArgs e)
{
string fr = addFrenchText.Text;
string eng = addEnglishText.Text;
string toWrite = eng + "_" + fr;
//Adding the word in the current database
word wordToWrite = new word(toWrite);
data.Add(wordToWrite);
wordGrid.Refresh();
} //Doesn't add the occurence