Topic: [Script] Striped TableGrid

Striped TableGrid
http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=981&download=0


procedure Form1_GridEmployees_OnChange (Sender: string);
var
   iRow ,c: integer;
   q, iCol: integer;
begin
     c := Form1.GridEmployees.RowCount - 1;
     q := Form1.GridEmployees.Columns.Count-1;
     for iRow := 0 to c do
         for iCol := 0 to q do
         begin
             if iRow mod 2 = 0 then Form1.GridEmployees.Cell[iCol,iRow].Color := clBtnFace;
         end;
end;

begin
end.


Download project:
http://myvisualdatabase.com/forum/misc. … download=1

Post's attachments

Attachment icon striped.png 26.35 kb, 474 downloads since 2015-05-20 

Dmitry.