This is a migrated thread and some comments may be shown as answers.

[Solved] Invisible -Add new record -CommandItemDisplay = GridCommandItemDisplay.None- Not working

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
satya
Top achievements
Rank 1
satya asked on 23 Sep 2009, 11:24 AM
Hi,

     I have to make Add New Record command item to be invisible on a user login , where as for admin login it will be visible.
    So i have a method where based on user login i am making 

RgdDomainDetail.MasterTableView.CommandItemDisplay =

GridCommandItemDisplay.None;
and for admin login 

 

RgdDomainDetail.MasterTableView.CommandItemDisplay =

GridCommandItemDisplay.Top;

But still i am able to see the add new record command item bar when the user is logged in.

Could you please suggest how to make it invisible .

Thanks,
Satya.

 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Sep 2009, 11:46 AM
Hi,

Have you tried calling ' RgdDomainDetail.MasterTableView.Rebind() ' after setting the CommandItemDisplay property?

-Shinu.
Tags
Grid
Asked by
satya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or