473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

datagrid ignoring my columnspans

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";
headerCell.Controls.Add(lblHeader);

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.

Oct 10 '06 #1
0 826

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Chris Mayers | last post by:
Hi, I'm trying to sort a DataGrid (dotNet Windows Forms). Trouble is, the column I'm trying to sort on contains part numbers of the form xxx-yyy where xxx - Part Type yyy - Part Size.
0
by: Jan Keller | last post by:
Hello all, I am using an XmlTextReader and a DataSet to populate a DataGrid: ds = New DataSet xr = New XmlTextReader(path) ds.ReadXml(xr) xr.Close() dv = New DataView(ds.Tables.Item(0))
1
by: Tim Smith | last post by:
In my .cs code I populate set the DataSource appropriately and I can get my DataGrid to appear, though sorting throws an error 'dgDataGrid1__ctl1__ctl0' of type 'DataGridLinkButton' must be placed...
4
by: polarz | last post by:
I've written a program that pulls data from the internet and puts it into a datagrid. When the number of rows reaches a certain point my program freezes. Is there a limit to the number of rows...
1
by: Tobe | last post by:
There are two datagrids on the page. One is used to show the data inside a scrollable third-party panel. The other is positioned above that outside the panel to provide stationary headers. I am...
2
by: shahbaz | last post by:
Hi all, I'm kinda new to asp.net. I'm using a datagrid which shows data from a table...simple enough. Now I have a javascript (which I found on the web) which allows me to hide/show (or...
10
by: Alan Lambert | last post by:
I am writing a web-based reporting tool and using a datagrid to display information returned from a database. I am displaying column headings from bound columns with no problems but I need to...
1
by: arun2k3 | last post by:
hi I ve insertd a dropdownlist control in my datagrid.but after the postback event the DropDownList control keeps going back to the first item in the list. I have enableviewstate="True" in the...
1
by: Mark Gillespie | last post by:
Hi, I have a C# usercontrol, that contains a datagrid, attached to a dataset with XML schema. The host application uses globalisation to set the locale, and my usercontrol sees this change, and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.