سؤال

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