Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
| Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 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
  #1 (permalink)  
Old May 30th, 2004, 04:26 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Loading a dropdown from a datagrid colum

Hi guys, I would really appreciate any advice on this.

I have a datagrid witb has a column called "CustomerName"

I would like to load a dropdown list with the text values from the colum. (The dropdown is not part of the datagrid or anything complex like that!).

Thanks in advance.
Bren

  #2 (permalink)  
Old May 30th, 2004, 08:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

You could data bind the drop down list to the data source, by setting the DataTextField and DataValueField fields.

Brian


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 in DataGrid kiranpanjala Classic ASP Databases 0 January 24th, 2005 10:54 AM
Loading a text file into a datagrid daniel VB.NET 2002/2003 Basics 10 October 22nd, 2004 12:07 PM





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