Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > datagrid ignoring my columnspans

Thread Tools

datagrid ignoring my columnspans

Posts: n/a
Hi i've been wrestling with this all day to no effect; I'm trying to
add cells to a datagrid's pager row:
protected void Grid_ItemCreated(object sender, DataGridItemEventArgs e)
if (e.Item.ItemType == ListItemType.Pager)
TableCell headerCell = new TableCell();

Label lblHeader = new Label();
lblHeader.Text = "Journals";

e.Item.Cells.AddAt(0, headerCell);

e.Item.Cells[0].ColumnSpan = 3;
e.Item.Cells[1].ColumnSpan = 1;
That's the jist of it anyway, seems simple enough but on the page, the
first pager cell is always set to span the entire table
(colspan='however-man-columns-in-table') and the remaining cell(s) that
I add just dribble off the end of the table. Why on earth won't the
datagrid respect my perfectly reasonable columnspan parameters! Any
ideas greatly appreciated.

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
Mozilla & Firefox ignoring my Hosts file Captain Infinity Firefox 4 09-03-2009 10:55 AM
datagrid ignoring my columnspans justin ASP .Net 0 10-10-2006 07:25 PM
Ignoring multiple threads Stig Ove Voll Firefox 0 03-08-2005 09:57 PM
Perl expression for parsing CSV (ignoring parsing commas when in double quotes) GIMME Perl 2 02-11-2004 05:40 PM
ASP.NET Processor Ignoring DataLists? Jonathan Hollinger ASP .Net 3 08-19-2003 01:27 AM