Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DTCs Within a Grid?

Posted on 2002-04-01
4
Medium Priority
?
214 Views
Last Modified: 2013-12-24
I have learned how to put hyperlinks in a grid, but how do you put DTCs in a grid?!?  

I have an Orders grid (showing the following fields: OrderID, CustomerID, and OrderDate) and would like a "Delete Order" DTC button in each row...I want to write an event handler for the button's onclick event, which will not only delete the record corresponding to that row, but also other records with the same OrderID located in another database table (OrderDetails table).

Peggy
 
0
Comment
Question by:peggasus88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Expert Comment

by:merlinb
ID: 7437441
A DTC will output its HTML as a string if you call its Display routine with the parameter (true).

Inside a table cell, put =txtMyTextboxDTC.display(true);

[assuming that you have a textboxDTC called txtMyTextboxDTC, of course!]

However, this is not quite that simple - because then you get TWO versions of the textbox, one inside the grid and one outside.  You can 'hide' the text box - but then both versions dissappear.  What you need is a way to unhide it, get the html, then hide it again - all within the grid.

To this end, have a look at:

http://www.tek-tips.com/faqs.cfm?spid=117&sfid=771&CFID=84881745&CFTOKEN=49138274
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11205074
PAQed - no points refunded (of 25)

modulo
Community Support Moderator
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question