This is the code i created to build the header. Intrestingly it renders a new &#060;tr&#062; but it is not rendering a &#060;td&#062; in that row which it should to create the new header. Any help is greatly appreciated<BR><BR>this is the code i have in <BR><BR>private void dgLineItem_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)<BR> {<BR> if(e.Item.ItemType == ListItemType.Header)<BR> {<BR> //Gets the collection of cells from the datagrid<BR> TableCellCollection tCells = e.Item.Cells;<BR> //Create a cell<BR> TableHeaderCell dgCell = new TableHeaderCell();<BR> //Create a Table Cell<BR>// TableCell dgtCell = new TableCell();<BR>// dgtCell.Text = " Line Items";<BR><BR> dgCell.ColumnSpan= tCells.Count;<BR>// dgtCell.ColumnSpan = tCells.Count;<BR> dgCell.Text = " Line Items";<BR> //create new header datagrid item<BR> DataGridItem dgiHeader = new DataGridItem(0,0,ListItemType.Header);<BR>// DataGridItem dgiOldHeader = e.Item;<BR>// dgLineItem.Controls[0].Controls.Remove(dgiOldHeader);<BR> dgiHeader.Cells.Add(dgCell); <BR> dgiHeader.Visible = true; <BR> dgLineItem.Controls[0].Controls.Add(dgiHeader);<BR> }<BR> }<BR><BR><BR>thanks in advance,<BR>Anand