Solved

DTCs Within a Grid?

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

 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

Question has a verified solution.

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

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…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
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 integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

634 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