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

Grid DTC 1

Status
Not open for further replies.

crystalized

Programmer
Jul 10, 2000
390
CA
Does anyone know if there is a way to have your grid DTC display at least the table headings when there is no data in the grid.&nbsp;&nbsp;Right now I am not seeing anything at all if the recordset the grid is based on has no records in it.<br><br>The way I am hoping to use the grid makes it very <br>&quot;non-intuitive&quot; (if there is such a word) for the user if the grid is not displayed at all.<br><br>If anyone knows a way to accomplish this I would be very appreciative of the assistance. <p>Crystal<br><a href=mailto:crystals@genesis.sk.ca>crystals@genesis.sk.ca</a><br><a href= > </a><br>--------------------------------------------------<br>
Experience is one thing you can't get for nothing.<br>
-Oscar Wilde<br>

 
Dear Crystal,<br><br>There are several techniques you could use. The most straight forward is to do something like this:<br><br>&lt;% if ( Recordset1.EOF){ %&gt;<br>&lt;table&gt;&lt;tr&gt;<br>&lt;td&gt;Column One&lt;/td&gt;<br>&lt;td&gt;Column Two&lt;/td&gt;<br>&lt;/tr&gt;&lt;/table&gt;<br>&lt;% } // if ( empty rowset) %&gt;<br>// DTC Grid control is next in page source<br><br>You can get more complicated by trying to get the column header strings from the grid control to generate the column headings dynamically. Or.... even more techniques... but for now I will stop here.<br><br>Hope this helps<br>-pete
 
Thanks a bunch,<br><br>I guess I should have thought of that myself, but hey it has been a long day.<br><br> <p>Crystal<br><a href=mailto:crystals@genesis.sk.ca>crystals@genesis.sk.ca</a><br><a href= > </a><br>--------------------------------------------------<br>
Experience is one thing you can't get for nothing.<br>
-Oscar Wilde<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top