Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best Practice in Sectioning Results

Status
Not open for further replies.

acent

Technical User
Feb 17, 2006
247
US
Greetings.

I'm looking for the best way to section off results in a GridView. For instance, I Have my GridView with a series of dated events:
Code:
_______________________________
|        |Date      |Description
| Delete |1/1/2009  |blah
| ..... 
| Delete |1/10/2009 |blah
| ..... 
| Delete |1/31/2009 |blah
| ..... 
--------------------------------
How do I change this to look like:
Code:
_______________________________
|        |Date      |Description
| This Week 
| Delete |9/20/2009 |blah
| ..... 
| Last Week 
| Delete |9/14/2009 |blah
| ..... 
| 2 Weeks Ago
| Delete |9/7/2009 |blah
| ..... 
--------------------------------
I was thinking of nesting some gridviews, but this seems like more overhead than should be necessary. I had thought about some repeaters, but then deleting an event would be interesting to say the least.

Thanks for the help.

"If it's stupid but works, it isn't stupid."
-Murphy's Military Laws
 
use either nested listviews (asp.net 3.5) or repeaters to generate the html. gridviews are not nearly as flexible to customize the table configuration.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top