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

Show/Hide Column based on Permissions

1 Answer 254 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 14 Jan 2009, 09:26 PM
I would like to have a delete column that only shows (visible) on the grid with the user has permission to use it.  Is that possible?  I looked and I did not see an example.  I might be looking in the wrong place.  Thanks.

Ed

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Jan 2009, 03:56 AM
Hi Edward,

You can check for the permission and then show or hide the column using the Visible or Display property.

CS:
        //Hide the column using Visible property 
        RadGrid1.MasterTableView.GetColumn("ColumnUniqueName").Visible = false
        //Hide the column using Display property 
        RadGrid1.MasterTableView.GetColumn("ColumnUniqueName").Display = false


Shinu


Tags
Grid
Asked by
Edward
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or