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

hide datagrid header 1

Status
Not open for further replies.

jkl

Programmer
May 16, 2001
83
US
is there a way to hide the datagrid header.
 
You can use the onItemDataBound event to do it:

Protected Sub itemDataBound(ByVal o As Object, ByVal e As DataGridItemEventArgs) Handles myGrid.ItemDataBound
If e.Item.ItemType = ListItemType.Header Then
e.Item.Visible = False
End If
End Sub

:)
paul
penny1.gif
penny1.gif
 
Thanks Paul. Again you come to the rescue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top