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

Customizing grid fields

Status
Not open for further replies.

drimades

IS-IT--Management
Joined
Nov 8, 2004
Messages
221
Location
MK
How can I exclude some fields from displaying in a datagrid after loading the data in it? For example if I want to exclude the second column ("Phone number") from the grid.
 
Try to set the datagridviewcolumn visible property to false:

Code:
yourDgvColumn.visible = False

hope it did the trick
 
I think it's fine, but how can I refer to a given column of the datagrid (the second for example)?
 
yourDataGridView.Columns(indexAsInteger_or_columnNameAsString).Visible = False
 
It isn't a Datagridview but a Datagrid ... [ponder]
 
I think you might have to reformat the whole datagrid, specifing a width of 0 for the columns you wish to hide.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top