เอกสาร HotXLS

อีเวนต์ AfterRows

เกิดขึ้นหลังจากบันทึกแถวทั้งหมดของdatasetลงในแผ่นงาน

ไวยากรณ์

ตัวอย่างนี้แสดงวิธีใช้อีเวนต์ AfterRows

ตัวอย่าง

TAfterRows = procedure (Sender: TObject; Range: IXLSRange) of object;
Sender TObject. ระบุ TDataToXLS component that triggered event
Range IXLSRange. แทน ช่วง which contains ทั้งก้อน detail area

ตัวอย่าง

This example puts the line between rows in the detail area

procedure TForm1.DataToXLS1AfterRows(Sender: TObject;
  Range: IXLSRange);
begin
  Range.Borders[xlInsideHorizontal].LineStyle := xlContinuous;
end;