锁定DBgrid的前几列时,如何解决在左右移动时锁定列的列名不消失? 锁定DBgrid的前几列,即在记录左右滚动时,保证锁定的几列不移动,但问题是移动滚动条时锁定的几列列名会消失,怎么解决这个问题,大家有什么好办法么? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 判断滚动了多少列,然后从固定列中第一列开始,把index顺序向后增加 考虑一下dev的grid吧,它可以固定任意列 用dbgridehProcedure Terp.sd(component:string;form:string);begin with application.FindComponent(form) as tform do begin tdbgrideh(FindComponent(component)).FrozenCols:=tdbgrideh(FindComponent(component)).Selection.Columns.Count; end;end; dbgrideh1.FrozenCols:=dbgrideh5.Selection.Columns.Count; infopower4000也不错 里面的TwwDBGrid可以任意设定固定列 用两个DbGrid.即可。好用得很。 登录窗口的问题 请问VISTA和WIN7编程需要注意什么? 归纳排序问题 关于设备监控管理软件的开发 ¥¥¥¥¥¥ 200分 请大家讨论! ¥¥¥¥¥ 求<<北非谍影>>中的歌曲<<Casablanca>>的歌词 高手\新手 ? 谢谢! 将 #12345#76832#87060 转换成汉字的函数 帮看看下面的代码是哪儿错了? [Fatal Error] CoolUtilsPro.pas(56): Internal error: URW3010是什么意思? 高难度的问题!!! 征人做个车站售票系统 关于UDP传输的结构体中string长度
Procedure Terp.sd(component:string;form:string);
begin
with application.FindComponent(form) as tform do
begin
tdbgrideh(FindComponent(component)).FrozenCols:=tdbgrideh(FindComponent(component)).Selection.Columns.Count;
end;
end;
dbgrideh1.FrozenCols:=dbgrideh5.Selection.Columns.Count;