Lotok
Well-known member
I have an application where the initial form downloads a list of status's to a DataTable. That form then passes that DataTable byval over to other forms, which saves each form from accessing the same static data from the Database.
Example Status's,
Open, Closed, Awaiting Authorisation, Cancelled
One of the child forms needs to hide Closed and Awaiting Auth from a dropdownlist. They need to be there initially in case something is at that status, but once checked and given the all clear to do so, the application removes the unwanted 2.
After accessing a form which removes the 2 status's, it seems to be altering the mainforms DataTable, as if passed by reference. When passing the DataTable to another instance of the child form, the 2 options are not there.
I haven't posted a code sample I know, as I think I am probably missing some info on DataTables behavior and misusing it. If that is not the case, I will take the relevant code out to show you.
Many thanks for any help.
Example Status's,
Open, Closed, Awaiting Authorisation, Cancelled
One of the child forms needs to hide Closed and Awaiting Auth from a dropdownlist. They need to be there initially in case something is at that status, but once checked and given the all clear to do so, the application removes the unwanted 2.
After accessing a form which removes the 2 status's, it seems to be altering the mainforms DataTable, as if passed by reference. When passing the DataTable to another instance of the child form, the 2 options are not there.
I haven't posted a code sample I know, as I think I am probably missing some info on DataTables behavior and misusing it. If that is not the case, I will take the relevant code out to show you.
Many thanks for any help.