use
SmartGrid
var
aGridView: TSmartGridDBBandedTableView;
aGrid: TcxGrid;
begin
..
//当前Grid(多个Grid时)
if Self.ActiveControl is TcxGridSite then
begin
aGridView := TcxGridSite(Self.ActiveControl).ViewInfo.GridView as TSmartGridDBBandedTableView;
aGrid := aGridView.GetParentComponent as TSmartGrid;
end;
..
end
————————————————
版权声明:本文为CSDN博主「chelen_jak」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/chelen_jak/article/details/7423957