G
Guest
I have a page where I have 3 combo boxes listed in a column. sort of like:
combo1
combo2
combo3
Based on which one is clicked, the others are supposed to hide (i.e.
combobox.visible = false).
However, when I have the bottom one in that column to be the one to be used
(selectedindex > 0) even if I set the visible property to be false, the
combo box will show. In this case, I'm trying to hide combo2 from view,
after selecting an item from combo3.
It doesn't show the data in it, it's just an empty combo box that's in the
middle.
The onclick of the controls displays a datagrid, and I have the following in
the bindgrid sub just to confirm:
dim q as boolean
q = cmbbox.visible and it returns false, yet the empty combobox still shows.
Can you hide the combo boxes like this?
I believe the combo boxes are unhidden at page load, but do not know if I
need to hide them at first, and then unhide them as I display stuff in them.
However, this "hide" of the middle box is based on a selectedindexchanged
event on the bottom combo box.
Any help appreciated.
SC
combo1
combo2
combo3
Based on which one is clicked, the others are supposed to hide (i.e.
combobox.visible = false).
However, when I have the bottom one in that column to be the one to be used
(selectedindex > 0) even if I set the visible property to be false, the
combo box will show. In this case, I'm trying to hide combo2 from view,
after selecting an item from combo3.
It doesn't show the data in it, it's just an empty combo box that's in the
middle.
The onclick of the controls displays a datagrid, and I have the following in
the bindgrid sub just to confirm:
dim q as boolean
q = cmbbox.visible and it returns false, yet the empty combobox still shows.
Can you hide the combo boxes like this?
I believe the combo boxes are unhidden at page load, but do not know if I
need to hide them at first, and then unhide them as I display stuff in them.
However, this "hide" of the middle box is based on a selectedindexchanged
event on the bottom combo box.
Any help appreciated.
SC