in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Customize export for C1TrueDBGrid

Last post 05-17-2008 9:45 AM by alexanderm. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-15-2008 12:01 PM

    Customize export for C1TrueDBGrid

    Hi folks,

    I'd like to be able to customize the ExportToHTML and ExportToCSV functions of the C1TrueDBGrid. In our case we have a status column as the first column of the grid and we do not want this column to be visible in the output CSV and/or HTML document.

    Ho do we do that? Any examples would be greatly appreciated.

    Thanks.

     
    Regards,

    Georgi
     

  • 05-17-2008 9:45 AM In reply to

    Re: Customize export for C1TrueDBGrid

     You can hide column before export, for example:

                c1TrueDBGrid1.Splits[0].DisplayColumns[0].Visible = false;
                c1TrueDBGrid1.ExportToHTML("test.html");
                c1TrueDBGrid1.Splits[0].DisplayColumns[0].Visible = true;
     

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.