p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ADO.NET (http://p2p.wrox.com/forumdisplay.php?f=109)
-   -   Binding Column Name to a Combo Box. (http://p2p.wrox.com/showthread.php?t=14028)

jitu June 10th, 2004 09:16 AM

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

bmains June 10th, 2004 11:20 AM

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

melvik June 13th, 2004 02:30 AM

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

Always:),
Hovik Melkomian.

genisof June 27th, 2013 07:35 AM

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


All times are GMT -4. The time now is 10:29 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.