Ok, this might be a dumb question, but can you add grid lines to a Repeater? I know this can be easily done with a datagrid, but my application utilizes a repeater and it would be a miracle if I can put gridlines on it. If anyone knows how to do this I'd greatly
appreciate it!
Since a Repeater emits nothing beside the HTML content you specify it to, you will have to manually add GridLines. This should be a simple venture if you are displaying the data in a
. If not, then it might be more difficult. BUT, what it boils down to is inserting the correct client-side HTML markup where needed. hth
Happy Programming!
-- Scott Mitchell
-- mitchell@4guysfromrolla.com
-- http://scottonwriting.net/sowblog/
-- http://www.4GuysFromRolla.com/ScottMitchell.shtml
It depends on if you are displaying the results in an HTML
. If so, you can use the CSS border-style property. In any event, if you are using a
for your repeater, simply construct a DataGrid that displays the data like you like, and then do a View/Source to see how the HTML. Then, emulate this HTML in your Repeater. hth
Happy Programming!
-- Scott Mitchell
-- mitchell@4guysfromrolla.com
-- http://scottonwriting.net/sowblog/
-- http://www.4GuysFromRolla.com/ScottMitchell.shtml
KamyarM
Member
207 Points
48 Posts
Repeaters with grid lines??
Aug 05, 2003 09:32 PM|LINK
Scott Mitche...
Contributor
4114 Points
712 Posts
ASPInsiders
MVP
Re: Repeaters with grid lines??
Aug 05, 2003 10:05 PM|LINK
-- Scott Mitchell
-- mitchell@4guysfromrolla.com
-- http://scottonwriting.net/sowblog/
-- http://www.4GuysFromRolla.com/ScottMitchell.shtml
KamyarM
Member
207 Points
48 Posts
Re: Repeaters with grid lines??
Aug 05, 2003 11:09 PM|LINK
Scott Mitche...
Contributor
4114 Points
712 Posts
ASPInsiders
MVP
Re: Repeaters with grid lines??
Aug 06, 2003 02:53 AM|LINK
-- Scott Mitchell
-- mitchell@4guysfromrolla.com
-- http://scottonwriting.net/sowblog/
-- http://www.4GuysFromRolla.com/ScottMitchell.shtml