Question Locked

HOW to..

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi,
ive a gridview that shows all the buttons that i wanted user to click on it to calculate something.

in my gridview, i have the button merit/demerit button and i would like to set access rights to it. for eg: for this merit/demerit button, i only want the login name : LS to access this button. if not, message pop up says that this person has no access rights for this button.

how do i go abt doing it ?

i want to know the codes on how to set the button for user access rights. thank you!

4 replies

by tony hopkinson

If the OnClick event you check whether the user can do it, if not show a message...

Personally I think that would be a crap interface.

I'd disable the buttons that can't be accessed by the current user. If there were sevarla reaons why. then a bit of info in a status box, should explain.

by lisun88

i agree. but they got diff people under their in charge. so we cant make the gridview invisible.

anyone can help ? its in VB coding in visual studio 2005.

This discussion is closed to new replies.