K
Krish
Looks like I can just populate dropdownlist using DataView, say MyDV, during
my pageload and
then in the aspx file in the EditItemTemplate use something like this:
<EditItemTemplate>
<asp
ropDownList
id = "ddMajor"
runat="server"
DataSource='<%# TempDataView%>'
DataTextField="cd_major"
DataValueField="cd_major"
SelectedIndex='<%#GetMajorDesc((String)DataBinder.Eval(Container.DataItem,
"????????")) %>' />
</EditItemTemplate>
How do i set the Selected Item or index to equal the correct item for this
rows data?
Krish
my pageload and
then in the aspx file in the EditItemTemplate use something like this:
<EditItemTemplate>
<asp
id = "ddMajor"
runat="server"
DataSource='<%# TempDataView%>'
DataTextField="cd_major"
DataValueField="cd_major"
SelectedIndex='<%#GetMajorDesc((String)DataBinder.Eval(Container.DataItem,
"????????")) %>' />
</EditItemTemplate>
How do i set the Selected Item or index to equal the correct item for this
rows data?
Krish