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

Problem with dtc-grid display

Status
Not open for further replies.

bryant89

Programmer
Nov 23, 2000
150
CA
I am using grids within an asp page. For some reason when I view the grids in ie two are created within nested tables. I know this because I read the source after viewing in ie. Although I only have one grid dtc in my asp development, for some reason 2 show up when I view with browser.

Any suggestions would be helpful
 
That is the way the DTC Grid control was written to control the display of the table. Don't shoot the messenger!

You might see if there are any updates to the _ScriptLibrary on MSDN or you can just modify the code yourself in datagrid.asp.

Good luck
-pete
 
I don't think you understood. Lets put it this way. I only have one grid control in my development area with 2 expressions for fields (generated from a recordset using specific recordset values). When I view the page in IE It shows both columns perfectly the way I want but it shows the exact same data in the row below (which I dont want and should not be happening). I know the grids purpose is to design an HTML table but they shouldnt make two rows of the same thing when I only specify to do it once. Maybe I am specifying to do it 2wice unintentionally some where I do not know. This is what I need help with. Is there some certain things I need to check?

This is the source of the generated page.

<TABLE border=0 cellpadding=0 cellspacing=0><TR><TD>
<TABLE cellpadding=2 cellspacing=0 bordercolor=#a77410 bgcolor=#a77410 border=0 cols=2 rules=ALL>
<TR bgcolor = #ffcc66 align=Left bordercolor=#a77410>
<TD VALIGN=TOP ><Font Size=4 Face=&quot;Times New Roman&quot; Color=#a77410 ><B><IMG WIDTH=120 SRC=../images/DalyceBannermanGENESIS.jpg ></TD>
<TD VALIGN=TOP ><Font Size=4 Face=&quot;Times New Roman&quot; Color=#a77410 ><B>Ms. Dalyce R. Bannerman <BR><FONT SIZE=3><I>An Individual Registered in the Equinox Network</I><BR><BR>Email: DBanner_99@hotmail.com</FONT></TD>
</TR>
<TR bgcolor = #ffcc66 align=Left bordercolor=#a77410>
<TD VALIGN=TOP ><Font Size=4 Face=&quot;Times New Roman&quot; Color=#a77410 ><B><IMG WIDTH=120 SRC=../images/DalyceBannermanGENESIS.jpg ></TD>
<TD VALIGN=TOP ><Font Size=4 Face=&quot;Times New Roman&quot; Color=#a77410 ><B>Ms. Dalyce R. Bannerman <BR><FONT SIZE=3><I>An Individual Registered in the Equinox Network</I><BR><BR>Email: DBanner_99@hotmail.com</FONT></TD>
</TR>
</TABLE>
</TD></TR></TABLE>

Notice it makes two rows. Well in the development area I dont know how it specifies to do that. I didnt set it up intentionally to do that and to me it looks like you can not control how many rows are in your grids except if you enable paging. I do not have paging enabled for this grid so I do not know why it is displaying the same thing twice in a different row. I hope this is clearer and you can help me.
 
Thanks for clearing that up.

Well to start with a SQL statement could produce that type of output. Are you sure that is not happening?

Also:
> with 2 expressions for fields (generated from a recordset using specific recordset values)

Do you mean, expressions inside the grid field definition? If so post the expression?

-pete

 
I am not sure what is happening. I did a quick fix by turning on record navigation and just not showing any of the nav bars. I set the # of records to be shown to 1 and that works.

What I meant was I have 2 columns.
Each column has an expression built rather than using a particular recordset field.



 
I was going to post the expressions but I have messed around with this for too long. I have decided to design the tables myself rather than using a grid.

Thanks for all of your help Palbano, I really appreciate it.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top