Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 January 24th, 2005, 10:54 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kiranpanjala Send a message via Yahoo to kiranpanjala
Default DropDown in DataGrid

I need to put a dropdown box in datagrid for a specific column. This is quite possible with Template Column but my requirement is of a different kind, let me explain

Lets assume we have two tables

1)Employee
========
Fields
------
    i) EmplyeeNumber
    ii) EmployeeeName
    iii)DeptartmentNumber

2) Dept
====
Fields
------
     i) DepartmentNumber
     ii)DeptName


Now, I'm trying to pull all the records from EMPLOYEE table into a DataGrid. Now when a user tries to edit, then all the fields must be in editable mode in textBoxes ( which is default ) except for DepartmentNumber. I wanna this column to consist of a dropdown box having unique departmentNumbers populated from DEPT table. The other condition is that when dropdown box is displayed in editable mode then the default value in dropdown list should reflect the value in the record from EMPLOYEE table.


Any help is highly appreciated

Thanks in advance

kiran





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dependent DropDown In DataGrid software_developer_kk ASP.NET 1.0 and 1.1 Professional 3 January 29th, 2007 03:13 AM
Dropdown list in a datagrid maddy137 ASP.NET 1.0 and 1.1 Professional 0 May 19th, 2006 02:05 PM
datasource for dropdown in datagrid msrnivas General .NET 1 August 8th, 2005 08:17 PM
select value of a dropdown in a datagrid Sbartis ASP.NET 1.0 and 1.1 Professional 2 January 14th, 2005 05:19 PM





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