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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Superposition panels in GridView Template

Status
Not open for further replies.

bitseeker

Programmer
Nov 27, 2005
60
US
I'm working on a design that involves multiple record types in the same GridView. I can merge all the fields from all the record types into one record layout in the GridView datasource, if needed, and separate the record types after. The trick is in presenting different formats for different records.

One approach is to use multiple panels in a GridView Template column, and to bind the "visible" property of each panel to a different Databinder.Eval value:

DataBinder.Eval(Container.DataItem, "RecordType") ="1"

In this scenario, I'd like to know how I might superposition two or more panels in a GridView Template so that when I alternate making one or another visible, they show up in the same relative location within the template column (otherwise, the template column seems to require space for all panels, even though only one is visible.)

Or, if there's another way to get the same effect, that would be great, too.

Thanks!
 
Uh, my mistake: if one is not visible, it doesn't take up row height in the column; I hadn't played with the template size enough. So, not a problem!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top