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
275
Loop UltraGrid from a certain index.
posted

Hello, I have a grid called grdPart.

Is it possible to start a foreach loop from a specific index, instead of the 0 position?

  • 469350
    Suggested Answer
    Offline posted

    Hi William,

    No, not a foreach loop. But you could just loop using the index.


                for (int i = 10; i < this.ultraGrid1.Rows.Count; i++)
                {
                    var row = this.ultraGrid1.Rows[i];
                    // Do something with the row here.
                }