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

Trying to turn off the status bar in code

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 20 Oct 2010, 04:07 PM
Hi all,

I am executing the follwing code in an effort to turn off the insert record display on the grid when someone is to have read only privileges. This code is taken from page_load

protected

 

void Page_Load(object sender, EventArgs e)

 

 

 

{

 

                //disable status bar if read only
            string tCheck = System.Web.HttpContext.Current.Session["Agencies"].ToString();
            if (tCheck.ToString() == "R" )
            {
                RadGrid1.ShowStatusBar = false;
            }
}

After executing the status bar is still displaying. Is there a followup command or do I need to execute this command somewhere else?

Thanks,

David

1 Answer, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 20 Oct 2010, 06:24 PM
Whoops! Wrong variable. LOL

Got it.
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Share this question
or