GridView Pagination Width

Jun 5, 2007 at 4:14 PM
In the resulting HTML, the GridView-Pagination block seems to be separated out from the GridView <table> which results in a Pagination width of 100% by default, even if the GridView uses less. I'm trying to have the Pagination width automatically match the GridView table width but it does not seem to be possible since the table tag is closed before the pagination div begins. My work-around for now is to let it be 100% and not use background color so at least it is not obvious to the user.

I read the other discussions and I realize that not using GridView and opting for Repeaters, etc would be another way to go. It may also be something that could be addressed as a patch to the CSS Friendly GridView in the sourcecode but I don't know if this is a common problem that others would also like to see solved. As I'm new to CSS and the CSS Friendly controls I may be overlooking something.

Thanks in advance for any advice.
Jun 7, 2007 at 10:26 PM
Edited Jun 7, 2007 at 10:28 PM
I reviewed the GridViewAdapter.cs file from the sourcecode. It appears that a simple change may fix this:

Lines 124..126 from the original:

Jan 15, 2008 at 7:43 PM
That change fixed the width, but it positioned the pagination block on top.

What could be wrong?