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 ?

有帮助吗?

解决方案

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
   }
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top