|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
GridView Nested - Is it Possible?I have a question hopefully some ASP.NET Guru can answer. I am trying to build a nested style GridView for users to pull reports from a SQL Database. The question is, "Can I create a GridView with the following structure?" I know I can put GridViews' in columns but was wondering if we can just do it in rows. STRUCTURE: I have 3 GridViews; A, B, and C. In GridView A (THE TOP ONE), I have 5 rows. The rows are as follow. ROW 1 = Header 1 ('Capital') ROW 2 = GridView B (with its own header and footer [No Paging or Sorting]) ROW 3 = Header 2 ('Operational') ROW 4 = GridView C (with its own header and footer [No Paging or Sorting]) ROW 5 = GridView A Footer > I have a question hopefully some ASP.NET Guru can answer. I am trying What's the purpose of GridView 'A'? Do you really need it?> to build a nested style GridView for users to pull reports from a SQL How about a simple table? -- Happy Hacking, Gaurav Vaish | http://www.mastergaurav.com http://www.edujinionline.com http://articles.edujinionline.com/webservices ------------------- What I want to display in the Footer of GridView A, is a calculated
field of each columns for GridView B and C. So Basically, GridView A - Footer Row - Column 1.= (Look Down) [Grid View B Footer Row;Column 1] + [Grid View C; Footer Row; Column 2] Example: Column 1(Footer) of Gridview B = 10 Column 1(Footer) of Gridview C = 15 THUS Column 1(Footer) of Gridview A = 25 Hope you understand what I am trying to write. Thanks in advance for your help. Gaurav Vaish (www.EduJiniOnline.com) wrote: Show quoteHide quote > > I have a question hopefully some ASP.NET Guru can answer. I am trying > > to build a nested style GridView for users to pull reports from a SQL > > What's the purpose of GridView 'A'? Do you really need it? > How about a simple table? > > > -- > Happy Hacking, > Gaurav Vaish | http://www.mastergaurav.com > http://www.edujinionline.com > http://articles.edujinionline.com/webservices > ------------------- > What I want to display in the Footer of GridView A, is a calculated Frankly speaking... No! :-(> field of each columns for GridView B and C. > Hope you understand what I am trying to write. Unable to visualize at all. Anyway... I think data-binding makes sense when there's a 'specific template' that needs to be 'filled in' and not when there's no relation between two data to be displayed. IMHO, GridView at the main container would not make any sense... at least to me. -- Happy Hacking, Gaurav Vaish | http://www.mastergaurav.com http://www.edujinionline.com http://articles.edujinionline.com/webservices -------------------
Using ASP.NET 2.0's ImageMap Control
Uploading big files GridView Update Not Working asp.net 2 report problem with 3-tier design missing ellipsis in editor Treeview Styles Aren't working How to hide the "Edit" link in DetailsView via code? White strip showing up between two imagemaps ASP.Net 2.0 Validation Groups & IValidator Controls. UserControls in a different directory |
|||||||||||||||||||||||