Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 October 14th, 2004, 01:25 AM
Authorized User
 
Join Date: Jan 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default setting value of ddl inside datagrid

hello ..

 i made a dropdownlist populated by datasource 'CurrencyList' inside
 a datagrid populated by datasource 'CompanyList' .. now how do i set
 this dropdown to the value of the saved currency of the CompanyList
 .. & also retrieve it while editing ?

 ive included the code i use ...

 do suggest sumthin ..

<edititemtemplate>
  <asp:TextBox
   class="TextBox"
   id="txtAmt"
   Text='<%# Container.DataItem("Amount") %>'
   runat="server"/>
  <asp:DropDownList
   class="DropDown"
   id="ddlCurrency"
   DataSource='<%# CurrencyList %>'
   DataValueField = "CurrencyGID"
   DataTextField = "CurrencyNick"
   runat="server" />
</edititemtemplate>



 
Old October 14th, 2004, 08:03 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

If that doesn't work for you, you could try using the DataGrid_ItemDataBound event to manually add the databinding to the dropdownlist.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
how can selectedvalue of DDL make other DDL visibl hertendreef ASP.NET 2.0 Professional 4 May 20th, 2008 04:38 PM
SelectedIndexChanged DDL-->in Datagrid slaverymorgue ASP.NET 2.0 Basics 1 February 19th, 2007 09:30 AM
DropDownList into DataGrid-Every Row has a DDL su C# 2005 2 November 30th, 2006 10:23 AM
DropDownList into DataGrid-Every Row has a DDL su ASP.NET 1.0 and 1.1 Basics 0 November 29th, 2006 05:39 PM





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