N
Nathan Sokalski
I have a control that I want displayed in all items except the last one. I
figured the best way to do this was to determine whether the current item
was the last from within the ItemDataBound event using code such as the
following:
If e.Item.ItemIndex=(numberofitems-1) Then mycontrol.Enabled=False
but I cannot find a property that contains the total number of items before
the ItemDataBound event is raised. Any ideas? Thanks.
figured the best way to do this was to determine whether the current item
was the last from within the ItemDataBound event using code such as the
following:
If e.Item.ItemIndex=(numberofitems-1) Then mycontrol.Enabled=False
but I cannot find a property that contains the total number of items before
the ItemDataBound event is raised. Any ideas? Thanks.