Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
How to loop through displayed rows only (on current page) ?
posted

Hi !

I want to loop through the displayed rows on current page. I know about the InitializeRow event, but it seems to loop through the entire set of data.

My grid retrieves 3000 rows and uses paging, so I don't want to loop through these thousands of rows, only through the 25 rows displayed.

Can someone help me on that subject please ?

Thx,

Fred

Parents
  • 2636
    Verified Answer
    posted

    'VB.NET
    Imports Infragistics.WebUI.UltraWebGrid

    Dim igRow As UltraGridRow
    For Each igRow In myGrid.Rows
     'igRow.Cells(0).Value="FRED"
    Next


    //C#
    using Infragistics.WebUI.UltraWebGrid;
    {
        UltraGridRow igRow;
        foreach ( igRow in myGrid.Rows) {
            //igRow.Cells(0).Value="FRED"
        }
    }

     

Reply Children