G
Guest
Any clue to why this newRow call sets "programSelected" to null no matter
what I have tried?
Further explanation, this function resides in a form2 which I have been able
to give access to form1's (MainWindowReference's) public or internal
elements. Also "programSelected" is an internal global variable declared like
so: internal testSQLDataSet.programRow programSelected;.
private void openToolStripButton_Click(object sender, EventArgs e)
{
// TODO: fix problem with the programSelected being set to null
MainWindowReference.programSelected =
testSQLdatabaseDataSet.Programs.FindByProgramID((Convert.ToInt32(this.programViewDataGridView[0,this.programViewDataGridView.CurrentRow.Index].EditedFormattedValue)));
this.Close();
}
what I have tried?
Further explanation, this function resides in a form2 which I have been able
to give access to form1's (MainWindowReference's) public or internal
elements. Also "programSelected" is an internal global variable declared like
so: internal testSQLDataSet.programRow programSelected;.
private void openToolStripButton_Click(object sender, EventArgs e)
{
// TODO: fix problem with the programSelected being set to null
MainWindowReference.programSelected =
testSQLdatabaseDataSet.Programs.FindByProgramID((Convert.ToInt32(this.programViewDataGridView[0,this.programViewDataGridView.CurrentRow.Index].EditedFormattedValue)));
this.Close();
}