Hi all,
Could some one be knowing how I could insert two words in datagrid DropDownList if someone could please help me. Thank you.
Loading
Hi all,
Could some one be knowing how I could insert two words in datagrid DropDownList if someone could please help me. Thank you.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jim Van DickPosted Dec 21, 2006, 12:45 PM
<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 );}