W
WT
Hello,
I can figure how to set selectIndex or Value, I have tried this
<EditItemTemplate>
<aspropdownList ID="DDLSector3" DataSource='<%#
BindSector(this,(int)DataBinder.Eval(Container.DataItem,"wt_SectorId"))%>'
OnPreRender='SetSectorIndex' DataTextField='wt_SectorName'
DataValueField='wt_SectorId' runat="server" >
</aspropdownList>
</EditItemTemplate>
method BindSector returns a DataTable, it is in codebehind
but :
OnPrerender doesnt knows about the current item
BindSector(this, etc) set the page object into this, it succesfully receive
the selected index evaluated by eval, but it has no acces to the
DropDownList to select it
I have also tried to use declarative <ItemList />
Any help welcome.
CS
I can figure how to set selectIndex or Value, I have tried this
<EditItemTemplate>
<aspropdownList ID="DDLSector3" DataSource='<%#
BindSector(this,(int)DataBinder.Eval(Container.DataItem,"wt_SectorId"))%>'
OnPreRender='SetSectorIndex' DataTextField='wt_SectorName'
DataValueField='wt_SectorId' runat="server" >
</aspropdownList>
</EditItemTemplate>
method BindSector returns a DataTable, it is in codebehind
but :
OnPrerender doesnt knows about the current item
BindSector(this, etc) set the page object into this, it succesfully receive
the selected index evaluated by eval, but it has no acces to the
DropDownList to select it
I have also tried to use declarative <ItemList />
Any help welcome.
CS