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

Hiding Datagrid Column 2

Status
Not open for further replies.

smithbr

MIS
May 29, 2003
85
US
I have a datagrid set up and have a the last column set up as a calculated entity. I want to know how I can hide a column so it does not show up inthe datagrid but is still in teh dataset so it can be used in the calculation.
Brent
 

set the Width property of GridColumnStyles to 0


eg.

Dim colProspectID As New DataGridTextBoxColumn()
colProspectID.MappingName = "ProspectID"
colProspectID.HeaderText = "Prospect ID"
colProspectID.Width = 0

 
If you don't map a GridColumnStyle to the required column, it won't be displayed even though it exists in the data source.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top