Thursday, March 22, 2012

Thoughts on Data Presentation

Here's the reoccuring issue that I'm faced with. I've got a datalist, where I'd each row to have a details link, that will expand to show data from another database table underneath it. It's something that I could use in EVERY project.

Sometimes, I'll take multiple rows of data from one table and concatenate it into one long string (each record in this string being a link to another "page").

In ASP, looping around is cake. But when I try to encorporate a datalist, or a datagrid, with templates... I come across nothing but issues. I'm trying to embed a datalist within a datalists <selecteditemtemplate> at the moment - with little success.

Should I just stick to repeaters, and forget my dream of details that are from separate datasources?

Sorry, does this even make sense? I could elaborate further!

Rob."In ASP, looping around is cake. But when I try to encorporate a datalist, or a datagrid, with templates... I come across nothing but issues."

All beginning is hard, and once you get the hang of working with DataLists and DataGrids you're going to see the beauty of these controls. There are plenty of examples where yoou have Datagrids within DataLists etc. I'll point you towards one:

Nesting DataGrid
thanks for that link - I'm preparing to spend the night with it. Are there others?

rob.

0 comments:

Post a Comment