datalist and items.

P

Per W.

Hi, in the ItemDataBound i can use this to change things on a item.

Dim memoliteral2 As Literal
Dim memolabel2 As Label
Dim fileReader2 As String

e.Item.FindControl("TD_Memo").Visible = False
memolabel2 = CType(e.Item.FindControl("TD_Memo"), Label)
memoliteral2 = CType(e.Item.FindControl("TD_Literal"), Literal)
If memolabel2.Text = " " Then
e.Item.FindControl("TD_Literal").Visible = False


But how can i get to the items under SelectedItemTemplate ? Do i need to use
the SelectIndex and still process this under the ItemDataBound?

/Per W.
 
S

simida

Maybe you can process e.Item.ItemType = SelectedItem in the
ItemDataBound event, and find selected item.



"Per W. дµÀ£º
"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,162
Latest member
GertrudeMa
Top