UltraGrid 中当前选定的行位于 UltraGrid 的“所选行”集合中。 您可以获取 Rows 集合中包含的每个 UltraGridRow 的 Cells 集合中每个单元格的值。
选定行集合选定行 = 超网格 1。 已选择。 行;
for(int rowIndex = 0; rowIndex < selectedRows. 计数; 行索引++)
{
UltraGridRow row = selectedRows[rowIndex];
单元格收集单元格 = 行。 细胞;
for(int cellIndex = 0; cellIndex < cell。 计数; cellIndex++)
{
UltraGridCell cell = cells[cellIndex];
... 以下简称...
}
}
使用示例