471,350 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

How to fill the dropdownlist without using SqlDataSource

hi this is sudheer,
i am new one of this ASP.NET .i have one problem,i am using gridview control i know how to place the dropdownlistbox in gridview control.in my gridveiw control have contain totally 4 columns. The first 3 columns are bounded fields and the 4 th one is dropdownlistcontrol.the first 3 boundedfields are filled by using one table but the dropdownlist is fill with other table.How to fill the dropdownlist without using SqlDataSource.please giveme suggestion ,it's urgent
thank u
Jul 2 '07 #1
3 1750
r035198x
13,262 8TB
hi this is sudheer,
i am new one of this ASP.NET .i have one problem,i am using gridview control i know how to place the dropdownlistbox in gridview control.in my gridveiw control have contain totally 4 columns. The first 3 columns are bounded fields and the 4 th one is dropdownlistcontrol.the first 3 boundedfields are filled by using one table but the dropdownlist is fill with other table.How to fill the dropdownlist without using SqlDataSource.please giveme suggestion ,it's urgent
thank u
This belongs in the .NET forum and I'll move it there.
Jul 2 '07 #2
kenobewan
4,871 Expert 4TB
hi this is sudheer,
i am new one of this ASP.NET .i have one problem,i am using gridview control i know how to place the dropdownlistbox in gridview control.in my gridveiw control have contain totally 4 columns. The first 3 columns are bounded fields and the 4 th one is dropdownlistcontrol.the first 3 boundedfields are filled by using one table but the dropdownlist is fill with other table.How to fill the dropdownlist without using SqlDataSource.please giveme suggestion ,it's urgent
thank u
Please use more helpful titles. Thanks.
Jul 2 '07 #3
nateraaaa
663 Expert 512MB
hi this is sudheer,
i am new one of this ASP.NET .i have one problem,i am using gridview control i know how to place the dropdownlistbox in gridview control.in my gridveiw control have contain totally 4 columns. The first 3 columns are bounded fields and the 4 th one is dropdownlistcontrol.the first 3 boundedfields are filled by using one table but the dropdownlist is fill with other table.How to fill the dropdownlist without using SqlDataSource.please giveme suggestion ,it's urgent
thank u
Are you wanting to manually add items to the dropdownlist? If so you can use

Expand|Select|Wrap|Line Numbers
  1. ddlDropDownList1.Items.Add("Name_Of_Item");
  2. //repeat for each item that you want to add
  3.  
  4. ddlDropDownList1.DataBind();
Nathan
Jul 2 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by VB Programmer | last post: by
4 posts views Thread by P. Yanzick | last post: by
5 posts views Thread by Mike | last post: by
reply views Thread by andy | last post: by
3 posts views Thread by EdisonCPP | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.