Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DTCs Within a Grid?

Posted on 2002-04-01
4
Medium Priority
?
216 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
2 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
Suggested Courses

783 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