all groups > vb.net controls > august 2005 >
You're in the

vb.net controls

group:

RadioButtonList control


RadioButtonList control Stephen Noronha
8/23/2005 10:10:49 AM
vb.net controls: Hi all,

If I have a radiobuttonlist control and have some items in them, is it
possible to hide one item depending on "situation" for eg: Users, Managers
log in and see the same radiobuttonlist control but if user logs in he
should not see item "Query Database" and if manager logs in he should

Please advice,
Thanks in advance,

Stephen

Re: RadioButtonList control Mona
8/26/2005 12:00:00 AM
Hi Stephen,
How are you doing?
To implement what you are trying I would suggest you to try removing the
items form the list which should not be shown to concerned user and show
them in list when other oser uses it.
You would be required to check which user is using this form. On that basis
you may keep some items in the list or remove them.

To remove an item form a list you may use:
ListBox1.Items.RemoveAt(index of the item to be removed)

To add some item to the list use:
ListBox1.Items.Add("item to be added")

I hope this helps.

Thanks
Mona
[Grapecity]

[quoted text, click to view]

Re: RadioButtonList control Stephen Noronha
8/26/2005 8:48:23 AM
Hi Mona,

Thanks for the reply, actually I did it in another way, i dunno whether its
efficient but it was pretty good.
I used a placeholder and created an instance of radiobuttonlist and added
items into it, while adding i checked for the user and added some more
depending on the situation

Thanks,
Stephen

[quoted text, click to view]

AddThis Social Bookmark Button