DataSet dsStudenten = new DataSet("studenten");DataTable dtStudent = new DataTable("student");
private void BtnAanmelden_Click(object sender, EventArgs e) { DataRow drStudent = dsStudenten.Tables["student"].NewRow(); if (cbAanw.Checked) { instatus = "1"; } else { instatus = "0"; } drStudent["ovnummer"] = TbOvnr.Text; drStudent["instatus"] = instatus; dsStudenten.Tables["student"].Rows.Add(drStudent); LbStudenten.Items.Add(drStudent[0]); TbOvnr.Clear(); }