Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

template column visibility

Status
Not open for further replies.

NeilV

Programmer
Oct 14, 2002
117
GB
Hello!

I am trying to sset the visible property of a template column within a datagrid at runtime. So, for example, i want some users to be able to view the Edit column and others not to see it. How can this be done programmatically? I know the template column has a Visible property that can be set from within the HTML but cant figure out how to do it from within the code as there is no way to assign an ID to a TemplateColumn.

Please help me :)
 
myDataGrid.Columns[ColumnIndex].Visible = false;

-p

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top