Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
This is Ramesh, While Binding editable combobox data(Item) not showing, but item count are there. i'm using 3.5 ajaxtoolkit dll i'm paste that over here anyone find anything wrong let me know.

ASP.NET
<CC1:ComboBox ID="ComboBox1"  runat="server" DropDownStyle="DropDown" AutoCompleteMode="None"
CaseSensitive="false" RenderMode="Block" AutoPostBack="false" Font-Names="Comic Sans MS"
Font-Size="Large" ForeColor="DeepPink">
</CC1:ComboBox>

--Binding Code------------------------
C#
ComboBox1.DataSource = dsOfficeLocation.Tables(0)
ComboBox1.DataValueField = "Office_Location"
ComboBox1.DataTextField = "Office_Location"
ComboBox1.DataBind()
ComboBox1.Items.Insert(0, "--Select--")
ComboBox1.SelectedIndex = 0 


Advance Wishes!
Ramesh M.
Posted
Updated 1-Feb-12 18:57pm
v2
Comments
manognya kota 2-Feb-12 0:58am    
Added <pre> tags.
manognya kota 2-Feb-12 1:28am    
Are you getting any error while binding?

try this one

ComboBox1.DataValueField = "Office_Location";
ComboBox1.DataTextField = "Office_Location";
ComboBox1.DataSource = dsOfficeLocation.Tables(0)
ComboBox1.DataBind();
ComboBox1.Items.Insert(0, "--Select--");
 
Share this answer
 
v2
Comments
Rajesh Anuhya 2-Feb-12 1:21am    
Code tags added
--RA
ramesh_asm 3-Feb-12 7:27am    
Rajesh , after adding those codes even same issue.
Replace RenderMode="Block" with the RenderMode="Inline"
 
Share this answer
 
v2
Comments
Rajesh Anuhya 2-Feb-12 1:22am    
Code Tags added
--RA
ramesh_asm 3-Feb-12 7:27am    
Rajesh , after adding those codes even same issue.
Rajesh , after adding those codes even same issue.


Advance Wishes!!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900