Hi all,
Could some one be knowing how I could insert two words in datagrid DropDownList if someone could please help me. Thank you.
Inserting names into DropDownList.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jim Van Dick16 reputationPosted Dec 21, 2006, 7:45 AM EST
<asp:dropdownlist id="DDLPhaseNumber" Width="60px" CssClass="Standard-text" Runat="server" DataValueField="PhaseId" DataTextField="PhaseNumber" DataSource="<%# GetPhaseList() %>">
And then in the code behind, define that method:
protected PhaseCollection GetPhaseList()
{
PhaseFilterDetail theFilterDetail = new PhaseFilterDetail();theFilterDetail.ProjectId = TheProjectDetails.TheId;
theFilterDetail.TableOrigin = (TheProjectDetails.TableOrigin==
TableOriginsDB.TABLE_ORIGIN_NM_PROJECT? TableOriginsDB.TABLE_ORIGIN_NM_PHASES: TableOriginsDB.TABLE_ORIGIN_NC_PHASES); PhaseCollection theCollection = PhaseDetail.GetInfo(theFilterDetail); return( theCollection );}