format datalist "cells"

G

Guest

I have a datalist and I need to change the text in the header section of the
datalist
The data is coming out such as 1 2 3 4 5 6 and if it equals 5 or 6 i need it
to say OT instead of 5 or 6. How can i do that within a datalist?

I've tried
If e.Item.DataItem("period") = "5" Then
e.Item.DataItem = "OT"
End If

and it didn't work, any other ideas or suggestions
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top