try this
private void ADD_Click(object sender, EventArgs e)
{
DataRow rd = this.myTable.NewRow();
rd[0] = Name.Text;
rd[1] = LastName.Text;
rd[2] = lsGender.SelectedItem;
this.myTable.Rows.Add(rd);
dataGridView1.DataSource = this.myTable;
}
The data will be present only till the
life time of the application
( app opened and running ).. when it is closed the
datatable will reset
.
If you dont want to use DB and also to maintain the values, you shall use
XML