C
cqll
Unregistered / Unconfirmed
GUEST, unregistred user!
我在DBGrideh中,设置了两行Footer。现需要在程序中控制。
DBGridEh1.Columns[0].Footers[0].ValueType:= fvtStaticText;
DBGridEh1.Columns[0].Footers[0].Value:= '11';
程序编译通过,运行报错List Index Out of bounds(1)
更改为
DBGridEh1.Columns[0].Footer.ValueType:= fvtStaticText;
DBGridEh1.Columns[0].Footer.Value:= '11';
则同时两行都被赋值为‘11’了。
DBGridEh1.Columns[0].Footers[0].ValueType:= fvtStaticText;
DBGridEh1.Columns[0].Footers[0].Value:= '11';
程序编译通过,运行报错List Index Out of bounds(1)
更改为
DBGridEh1.Columns[0].Footer.ValueType:= fvtStaticText;
DBGridEh1.Columns[0].Footer.Value:= '11';
则同时两行都被赋值为‘11’了。