Accessing the index of the iterator in a repeater

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Ashutosh Bhalerao (ashubhalerao_at_yahoo.com)
Date: 06/23/04


Date: 23 Jun 2004 08:18:13 -0700

Hi all,

I have bound an Arraylist of Objects to a repeater.

All the items from the Object display fine on the screen.

Now I need the current index being bound inside the <ItemTemplate>
</ItemTemplate>. If the zeroth element is being bound then I need to
display 0 in a column, if the first element is being bound then I want
to display 1 in the column and so on.

Is there a property available which will allow me to get his index?
How do I go about doing this? Any help is appreciated.

Thanks in advance.

Rgds,
Ashu



Relevant Pages

  • Re: VB.NET 2005 Express WebBrowser Control
    ... I could not figure out a way to make the webbrowser object display ... I cleaned up the object by removing the text in the Url property - ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Save Child GridView only when parent GridView Saved
    ... the page will display multiple Questions and each of which ... I suggest you use Repeater + GridViewbecause ... Since you said that the answer list of each question support ... DataList/GridView control, we need to update the certain anwser record's ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: repeater
    ... The reason why I used a repeater to display my questions is because my ... I think to use the arraylist is a good idea, because I just need to store ... I do have a previous button, which once clicked should display the previous ... is pull all the questions down into a 2 dimensional array ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: localizing ax external template
    ... display some set of datas and you want to localize the displayed data(can ... Using the "ItemDataBound" event of the Repeater control, ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: 1 to many in GridView
    ... You can use a repeater control, within the item template of the repeater ... display a row from the master table then add a gridview to display the ... GridView from table1 with a blue background, ...
    (microsoft.public.dotnet.framework.aspnet)