Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET 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 10th, 2004, 09:16 AM
Authorized User
 
Join Date: May 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jitu
Default Binding Column Name to a Combo Box.

Hi,

Does anyone know how to bind a Column Names to a Combo box? I would like to create a Order By Combo Box?

thanks


Jitu Tivari
__________________
Jitu Tivari
 
Old June 10th, 2004, 11:20 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

What do you mean by Order by Combo Box? Is Combo Box a field in your database? Could using a DataView, where you can specify a row filter and sort expression, solve your problem?

Thanks,

Brian
 
Old June 13th, 2004, 02:30 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

take a look at : http://samples.gotdotnet.com/quickst...FormsData.aspx
HTH.

Always:),
Hovik Melkomian.
 
Old June 27th, 2013, 07:35 AM
Registered User
 
Join Date: Jun 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default rep

for (int i = 0; i < this.DataSet.TableName.Columns.Count;i++ )
{ this.comboBox1.Items.Add(this.DataSet.TableName.Co lumns[i].ToString());
}





Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo Box Complex Binding Example? pigparent VB Databases Basics 2 June 11th, 2008 12:08 PM
Multi-column combo box in datagridview aad1 C# 0 June 5th, 2006 09:58 AM
Binding a combo box to update a list view Amethyst1984 General .NET 0 February 28th, 2006 03:04 PM
Weird Combo Box Data Binding Problem [email protected] VB.NET 1 February 12th, 2005 04:52 PM
Weird Combo Box Binding Error [email protected] Pro VB.NET 2002/2003 0 October 8th, 2003 08:38 AM





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