Domanda

I can't find a way to get all cells in a UltraGrid. I want to get through them all in a foreach loop.

Is there a way to get them all ?

È stato utile?

Soluzione

Loop through all the Rows of the grid, then through all the Cells of the row:

foreach(var row in myGrid.Rows)
{
   foreach(var cell in row.Cells)
   {
      // Do stuff
   }
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top