CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Nested Grids and / or Grid inside Record, please?

Print topic Send  topic

Author Message
csierra

Posts: 123
Posted: 07/20/2008, 1:09 AM

Hi there; I am in the absolute need of getting a grid within each grid record (nested grid)
Does anyone knows how to achieve this?

Thanks in advance

Chuck
_________________
Yes! I Can!!!
View profile  Send private message
dataobjx


Posts: 181
Posted: 02/21/2009, 7:02 AM

One way of doing this is... this will create a html table grid within the cell.

If you want the nested grid be a real grid you can use an iFrame inside of the primary grids cells.

HTML Grid Table
Open the page containing the grid.
Locate the column that you want the nested grid to appear in select the text field and turn it into a label.
In the before show event for that label, get your recordset and dynamically build the html table and populate the cell with it.

Dim htmlGrid
htmlGrid = "<table>"
htmlGrid = htmlGrid & "<tr>"
htmlGrid = htmlGrid & "<td>"
htmlGrid = htmlGrid & "FieldName: " & Recordset.Fields(0)
htmlGrid = htmlGrid & "</td>"
htmlGrid = htmlGrid & "</tr>"
htmlGrid = htmlGrid & "</table>"

label1.value = htmlGrid


The second method is similar except that you want a real grid inside of the primary grid, not just a html table.
To do this..
Open the page containing the grid.
Locate the column that you want the nested grid to appear in select the text field and turn it into a label.
Create a new page to display the subgrid... called SubGrid (in this example)
Now to the Label1.value in the before show event add the iFrame code.

Dim subGrid
Dim X
X = Request.Querystring("ID")
subGrid = "<iframe src =""subgrid.asp?id=" & x & """ width="100%" height="300"></iframe>"
Label1.value = SubGrid

Hope this points you in the right direction.


_________________
www.DataObjx.net
www.mydigitalapps.com
View profile  Send private message
csierra

Posts: 123
Posted: 02/21/2009, 10:07 AM

Thanks for the feedback; I´m using xmlhttp obj to do a send, retreive the html output and embeeding it in a label too. This is working just fine in IIS6, but changed to IIS7 and the marvelous paranohia of M$ makes impossible to consume from same domain? Im not expert in IIS7, I dont know if it has to do with threads or security policies, the thing is that delays like 45 secs and returns an unspecified error.

Thank you anyway for the share
_________________
Yes! I Can!!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.