发布:2024/6/24 10:48:20作者:管理员 来源:本站 浏览次数:473
var views = gridControl1.Views.ToList();
foreach (BaseView bv in views)
{
GridView gv = bv as GridView;
if (gv == null)
continue;
//展开所有组
gv.ExpandAllGroups();
for (int rowIndex = 0; rowIndex < gv.RowCount; rowIndex++)
{
try
{
//展开明细列表
gv.ExpandMasterRow(rowIndex);
}
catch
{
}
}
}
© Copyright 2014 - 2025 柏港建站平台 ejk5.com. 渝ICP备16000791号-4