Forced accept.
Computer101
EE Admin
Main Topics
Browse All TopicsI have a column of dropdown list controls inside of a devexpress gridview. Currently, display value of the dropdown is an integer which is a foreign key in a lookup table. I would like the text value from the lookup table to be displayed. As well, in edit mode, I would like the lookup table values to be shown when I click the dropdown arrow.
I am doing this programatically and not using any sqldatasource object. The gridview displays the contents of a person datatable from a dataset. The lookup table is from a countries datatable. One column of the gridview is the person's country. When the gridview is first displayed, it shows the integer of the person's country. I am trying to get it to show the text of the person's country, which is located in a lookup table.
Any help would be greatly appreciated... Thank you in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Yeah, the download example found at http://msdn.microsoft.com/
is FAN-FRIGGIN'-TASTIC!
Exactl
Download example:
http://download.mi
Business Accounts
Answer for Membership
by: hamidovtPosted on 2008-02-07 at 01:13:21ID: 20839282
In my case I have a MyProjectBusiness where my business classes are defined. There is a SubscriptionType class with SubscriptionType has Id and Name and SubscriptionTypes class with GetAll method that returns a List of SubscriptionType objects...
ss" %> ons.Generi c" %>
" ionType" DataTextField="Name" DataValueField="Id" ubscriptio nType")).I d%>' > m> s.Subscrip tionTypes" />
/en-us/lib rary/bb426 884.aspx
<%@ Import Namespace="MyProjectBusine
<%@ Import Namespace="System.Collecti
<asp:DropDownList ID="ddlSubscriptionType" runat="server" AppendDataBoundItems="True
DataSourceID="odsSubscript
SelectedValue='<%# ((SubscriptionType)Eval("S
<asp:ListItem Value="">None</asp:ListIte
</asp:DropDownList>
<asp:ObjectDataSource ID="odsSubscriptionType" runat="server" SelectMethod="GetAll" TypeName="MyProjectBusines
If this is not clear enough, please take a look at http://msdn2.microsoft.com
You can download the project and see complete code. They do not have a separate business dll, but the idea is same...