Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Adding Extra Row Of Header

Thread Tools

Adding Extra Row Of Header

Jim Heavey
Posts: n/a
Hello, I am trying to figure out how to add an extra row
of heading to my datagrid. I came up with the following

Public Sub dgNewMovies_ItemCreated(ByVal sender As
Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles

If e.Item.ItemType = ListItemType.Header Then
Dim Item As DataGridItem
Dim ItemCell As TableCell
Item = New DataGridItem(0, 0,
ItemCell = New TableCell()
ItemCell.ColumnSpan = 7
ItemCell.Text = "Add Movies And Tapes
End If

End Sub

It runs through the code, but no additional heading - I
still have my original headings. Any idea what I am
doing wrong?
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview extra header row with command button and paging pickedaname ASP .Net Web Controls 10 07-28-2006 09:39 AM
datagrid having row header and column header ASP .Net Datagrid Control 0 07-13-2006 08:20 AM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM
DataGrid - adding an extra header... =?Utf-8?B?c2FsZWVr?= ASP .Net 2 01-17-2005 03:32 PM
Getting error adding an extra header to datagrid AMD Desktop ASP .Net 3 11-02-2004 09:09 PM