Вниз
Скачать: CL | DM;

Закрепление областей в DBGrid   Найти похожие ветки 

 
ivc_vetal   (2006-01-12 16:20) [0]

Как сделать закрепление областей в DBGgrid подобно Excel?


 
Ega23 ©   (2006-01-12 16:25) [1]


function FreezeColumns(ActiveDbGrid:TRxDbGrid):boolean;
var i:integer;
ds:tdataset;
begin
result:=false;
 if NoConnectGlb then exit; //@@ 09-10-2001

try
if ActiveDbGrid=nil then exit;
 try  ds:=ActiveDbGrid.DataSource.dataset;  if ds<>nil then ds.disablecontrols; except end;
i:=ActiveDbGrid.Col ;
if ActiveDbGrid.fixedCols=0 then ActiveDbGrid.fixedCols:= ActiveDbGrid.Col
       else ActiveDbGrid.fixedCols:=0;
if i>ActiveDbGrid.fixedCols then ActiveDbGrid.Col:=i;
result:=(ActiveDbGrid.fixedCols<>0);
finally
 try if ds<>nil then ds.enablecontrols; except end
end;
end;


Это?


 
ivc_vetal   (2006-01-12 16:29) [2]

ага. Thanks!!! :)))


 
Ega23 ©   (2006-01-12 16:58) [3]

Незачто



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.023 c
2-1136731237
начинающий 5
2006-01-08 17:40
2006.01.29
string


2-1136972101
Andrey.Ru
2006-01-11 12:35
2006.01.29
Компонент


4-1132253502
reskator
2005-11-17 21:51
2006.01.29
несколько USB мышей в качестве датчиков перемещений


2-1136913141
Lexword
2006-01-10 20:12
2006.01.29
Как скопировать текст?


6-1129620575
antoxa2005
2005-10-18 11:29
2006.01.29
http://www.delphimaster.ru/forum/add-4.html - Как сохранить файл?




   Наверх