Last post Jan 18, 2009 11:02 AM by blfoleyus
Jan 11, 2009 10:07 PM|DavidF|LINK
I have just installed the CSS Friendly Control Adapters and now my gridviews are not displaying dynamically added header rows.
Code for adding rows is like so:
headerCell.Text = heading
This is typically used for adding a nicely formatted heading row and it is a requirment that i must have this extra row. I sometimes need to add an additional row for sub grouping of columns.
I do this on the RowDataBound event.
Looking at the rendered source I do not see my rows anywhere however when doing an excel export (by passing the grid) I can see my rows however there is nothing in them.
I did try to search this forum for previous posts covering this issue but could not find anything, any help would be greatly appreciated. Thank You.
Jan 11, 2009 10:25 PM|blfoleyus|LINK
Just to verify i reflected the GridView class. It appears that only one header row can be rendered. However if you are looking to attach a row as an additional header, you would have to do it after the DataBind event and before the render.
I can whip up a code sample if you need one.
Jan 11, 2009 10:36 PM|DavidF|LINK
Hi, Thanks for the quick response. I am not sure i follow you though.
What I am asking is "I have been adding rows in the past without any issue but now after installing the adapters it no longer works"
Are you saying you have a solution for adding the extra rows when using the adapters? If so then yes a brief sample would be great.
Jan 18, 2009 11:02 AM|blfoleyus|LINK
I'm sorry, through my one blood shot eye, and lack of mountain dew, i missed the CSS adapter part, i apologize. Trying to recreate it, i have the same problem.