infragistics 循环每一个选中的行

 using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

  foreach (UltraGridRow linha in ultraGrid1.Rows)
            {
                if (linha.Selected)
                {
                    //MessageBox.Show(linha.Cells["Id"].Text.ToString());
                    strListOfID = strListOfID + linha.Cells["Id"].Text.ToString() + @",";
                }

            }
原文地址:https://www.cnblogs.com/lthxk-yl/p/3957526.html