Well, my first thought would be :
- FindProgramID doesn't return the row properly
- there is no match found...
IMO the problme would be in FindByProgramByID, check also your are looking
for the right key...
---
Patrice
"Rock" <(E-Mail Removed)> a écrit dans le message de
news:E5CFC243-6EDB-407F-A6CE-(E-Mail Removed)...
> 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.progra
mViewDataGridView[0,this.programViewDataGridView.CurrentRow.Index].EditedFor
mattedValue)));
> this.Close();
> }
>
>
|