G
Guest
Hi,
None of the C#/ADO documentation I was able to read refers what are the best
practices/implementations for this "kind of" problem, I would like to get
help/opinions please, let me explain it:
a) The App have several forms, parent and childs.
b) On the parent Form I have one DataGrid displaying "myDataTable".
c) On child Forms I have to edit just one Row of data from "myDataTable".
d) After the Row edit finish on the child form the DataGrid on parent form
must update.
1) Should we keep "myDataTable" on one static variable on parent Form and
pass it to child forms as parameter to allow that child form to use
"myDataTable" ?
2) Or should we use one independent instance/connection for "myDataTable" in
each new child form we create ?
3) Any other best practice ?
Thanks.
None of the C#/ADO documentation I was able to read refers what are the best
practices/implementations for this "kind of" problem, I would like to get
help/opinions please, let me explain it:
a) The App have several forms, parent and childs.
b) On the parent Form I have one DataGrid displaying "myDataTable".
c) On child Forms I have to edit just one Row of data from "myDataTable".
d) After the Row edit finish on the child form the DataGrid on parent form
must update.
1) Should we keep "myDataTable" on one static variable on parent Form and
pass it to child forms as parameter to allow that child form to use
"myDataTable" ?
2) Or should we use one independent instance/connection for "myDataTable" in
each new child form we create ?
3) Any other best practice ?
Thanks.