Solved

DTCs Within a Grid?

Posted on 2002-04-01
4
206 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
4 Comments
 

Expert Comment

by:merlinb
Comment Utility
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
Comment Utility
PAQed - no points refunded (of 25)

modulo
Community Support Moderator
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
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 set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now