M
Mike Adkins
Hello all,
I have a pretty cool situation here that I thought I had figured out.
I have a datagrid that is 4 columns bound to a table and another column that
is a checkbox. My goal was to keep track of the items that I have checked
while I am changing pages. So every time I change pages I would loop though
the grid on the current page and find out if a row has been check or not.
If it had been checked previously and then unchecked, I remove that item
from the array that I created in a separate module. If the item needs to be
added to the array, I do so. Then the page changes. So, when I go back to
a page that has checkboxes that need to be checked, then they are checked.
The problem I am running into is when multiple users are on the system using
the same form at the same time. That is really big problem. I see what
they have checked and they can see what I have checked. The reason being
the way the array is defined. I have defined the array as public in a
separate module outside of the main form class. I have tried to move the
declaration of the array into the form but then I cannot keep the data in
the array when I do a postback or change pages. Any thoughts or
suggestions... I am so close, I don't want to scrap this cool work.
Sorry it is so long!
Thanks!
Mike
I have a pretty cool situation here that I thought I had figured out.
I have a datagrid that is 4 columns bound to a table and another column that
is a checkbox. My goal was to keep track of the items that I have checked
while I am changing pages. So every time I change pages I would loop though
the grid on the current page and find out if a row has been check or not.
If it had been checked previously and then unchecked, I remove that item
from the array that I created in a separate module. If the item needs to be
added to the array, I do so. Then the page changes. So, when I go back to
a page that has checkboxes that need to be checked, then they are checked.
The problem I am running into is when multiple users are on the system using
the same form at the same time. That is really big problem. I see what
they have checked and they can see what I have checked. The reason being
the way the array is defined. I have defined the array as public in a
separate module outside of the main form class. I have tried to move the
declaration of the array into the form but then I cannot keep the data in
the array when I do a postback or change pages. Any thoughts or
suggestions... I am so close, I don't want to scrap this cool work.
Sorry it is so long!
Thanks!
Mike