void ReadGrid()
{
List<SymbolText> symtexts = new List<SymbolText>();
foreach (DataGridViewRow row in dataGridView.Rows) {
SymbolText text = new SymbolText();
text.Lang = symLanguage.LangId;
text.Text = UnsanitizeFillIn((string) row.Cells[3].Value);
if (genderColumn.Visible)
text.Gender = (string) row.Cells[1].Value;
else if (showGenderList)
text.Gender = comboBoxGenderChooser.Text;
else
text.Gender = "";
if (numberColumn.Visible)
text.Plural = (string) row.Cells[0].Value == MiscText.Plural;
else
text.Plural = false;
if (caseColumn.Visible) {
text.Case = (string)row.Cells[2].Value;
}
if (showCaseList) {
if (comboBoxCaseChooser.SelectedIndex <= 0)
text.CaseOfModified = "";
else
text.CaseOfModified = (string) comboBoxCaseChooser.SelectedItem;
}
symtexts.Add(text);
}
symbolTexts = symtexts;
}