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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide a datagrid column

Status
Not open for further replies.

Darci

IS-IT--Management
Jul 23, 2002
37
0
0
US
Hi,

I am pulling data into a grid from SQL Server and I want to hide one of the columns. How do I do this?

Thanks,

Darci

"If you do what you always did, you get what you always got."

Darci
 
There are numerous ways of accomplishing this, e.g. dynamically, explicitly, etc.

Easiest way:
Create a BoundColumn or TemplateColumn and set the Visible Property to "False" such as:

<asp:TemplateColumn HeaderText=&quot;PrivateField&quot; Visible=&quot;false&quot;></asp:BoundColumn>[/blue]

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top