Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 24th, 2005, 02:50 AM
Authorized User
Join Date: Jun 2005
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to aldwinenriquez
Default Datagrid with varying controls on each row

I have a set of questions in xml,each of which has different answer types like text,decimal,boolean

I want to display this questions inside a datagrid.
Say a datagrid will have two columns(Question and answer).
But the answer column should contain a text box if answer type is text or decimal,two radio buttons if answer type is boolean,etc.

Seems like I cannot bind a dataset created from xml and have the datagrid display the appropriate answer control for the question,coz if I create a template column for the answer,I could not just place a textbox or radio buttons there for it will depend on the resultsets.

I wonder if I can create a datagrid and add datagrid items programmatically(without binding datagrid to a datasource) and let me decide whether to put a textbox or radio buttons on the second column.
Is this possible or any better approach to this?

Aldwin Enriquez
President,Software Engineer - Narrasoft Philippines Inc.
\"Dont you ever give up!\"
Old June 25th, 2005, 11:31 PM
Friend of Wrox
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

ASP.NET? This is the classic ASP area of the forum.

Wind is your friend

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scrollbar in row of Datagrid Except Header Row Theone84 ASP.NET 2.0 Professional 0 August 11th, 2008 12:10 AM
Varying DataGrid URLs sueolo ASP.NET 1.0 and 1.1 Basics 1 September 30th, 2005 11:34 PM
How to remove row from datagrid iniro VB.NET 2002/2003 Basics 3 November 10th, 2004 09:28 AM
Clicking on a row in a datagrid SaharaWizard VB Databases Basics 0 September 1st, 2004 04:25 PM
Manage data row by row in datagrid Dragonist Classic ASP Databases 5 July 29th, 2004 04:17 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.