Click here to Skip to main content
12,074,549 members (60,487 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
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.

<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------------------------
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 1-Feb-12 19:43pm
Edited 1-Feb-12 19: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?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

try this one

ComboBox1.DataValueField = "Office_Location";
ComboBox1.DataTextField = "Office_Location";
ComboBox1.DataSource = dsOfficeLocation.Tables(0)
ComboBox1.DataBind();
ComboBox1.Items.Insert(0, "--Select--");
  Permalink  
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.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Replace RenderMode="Block" with the RenderMode="Inline"
  Permalink  
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.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Rajesh , after adding those codes even same issue.


Advance Wishes!!!
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160208.1 | Last Updated 3 Feb 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100