Accessing the databound object in ListView event

  • Thread starter Thread starter C.
  • Start date Start date
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
 
C. wrote:

<snipped>

This is where you should post your problem.

microsoft.public.dotnet.framework.aspnet
 
Back
Top