Solved

DTCs Within a Grid?

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to insert an Iframe into 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 : Open Page or Post…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…

929 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

7 Experts available now in Live!

Get 1:1 Help Now