How to programatically access rows in a repeater control

I have the following repeater control. What I nned to do is get all the HistoryDateTime field values from all the rows and put them in an array or a list so that I can do some processing in the code behind file. I use vb.net. I do not know how to access rows in a repeater.

<div class="history">
        <ul>
            <asp:Repeater id="rptStatus" runat="server" OnItemCreated="rptStatus_ItemCreated">
              <ItemTemplate>
                 <li>
                 
                     <div class="top">
                         <asp:Label ID="lblStatus" CssClass="status" Text='<%#Eval("Status")%>' runat="server"></asp:Label>
                         <asp:Image ID="ImgArrow" CssClass="arrow" runat="server"  ImageUrl="~/Images/arrow.gif"/>
                     </div>  
                     
                     <div class="bottom">
                        <asp:Label ID="lblHistoryDate" CssClass="date" Text='<%#Eval("HistoryDateTime", "{0:d}")%>'
                                       runat="server">
                        </asp:Label>
                     </div>
                                         
                  </li>                    
              </ItemTemplate>              
            </asp:Repeater>
        </ul>
    </div>
sergeiweerasuriyaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sm394Commented:
0
sm394Commented:
somthing like this on item databound

if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{

DataRowView dv = e.Item.DataItem as DataRowView;
string data = ((DataRowView)e.Item.DataItem).Row["ColName"].ToString();

}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Applications

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.