Accessing the databound object in ListView event

C

C.

Hi,

I have a ListView that exposes all of my users using an
ObjectDataSource.

As the ListView creates a row for a user, I would like to check the
bool IsFrozen attribute, and if it is true, to write out an image.

So, if IsFrozen is true:

<td><img src="frozen.png"></td>

else

<td><img src="thawed.png"</td>

I thought the OnDataBound event would be a good place to start, but
the ListViewItemEventArgs object appears to reference only the row
being created, and I would like to reference the actual user object
being bound to that row.

Any thoughts?

Thanks,

Chris
 
M

Mr. Arnold

C. wrote:

<snipped>

This is where you should post your problem.

microsoft.public.dotnet.framework.aspnet
 

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

Top