GithubHelp home page GithubHelp logo

viniciussanchez / devexpress4delphi Goto Github PK

View Code? Open in Web Editor NEW
34.0 6.0 16.0 231 KB

Class helper for DevExpress components

License: Apache License 2.0

Pascal 100.00%
devexpress cxgrid delphi vcl helper

devexpress4delphi's Introduction

DevExpress Helper for Delphi

Delphi Supported Versions Platforms

DevExpress4Delphi is a class helper for DevExpress components.

Prerequisites

  • DevExpress - VCL Components for Delphi and C++Builder
  • [Optional] For ease I recommend using the Boss (Dependency Manager for Delphi) for installation

Installation using Boss (dependency manager for Delphi applications)

boss install github.com/viniciussanchez/DevExpress4Delphi

Manual Installation

Add the following folders to your project, in Project > Options > Resource Compiler > Directories and Conditionals > Include file search path

../DevExpress4Delphi/src

Getting Started

You need to use DevExpress.Helper

uses DevExpress.Helper;

Export

You can pass two parameters:

  • AOpenFileAfter: Open file after export. Default is True.
  • AExpand: Expand records. Default is True.

Exporting to Excel

begin
  cxGrid1.ExportToExcel();
end;

Exporting to HTML

begin
  cxGrid1.ExportToHTML();
end;

Exporting to XML

begin
  cxGrid1.ExportToXML();
end;

Exporting to file text

begin
  cxGrid1.ExportToTXT();
end;

Adjust the size of the column

You can pass parameter:

  • AMaxWidth: Refers the maximum column width.
begin
  cxGrid1DBTableViewNAME.Resize();  
end;

Samples

Exporting to excel:

DevExpress4Delphi

Adjusting the size of the column so that there is no white space on the grid:

DevExpress4Delphi

devexpress4delphi's People

Contributors

juliosenha avatar mateusvicente100 avatar viniciussanchez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

devexpress4delphi's Issues

MinWidth

Por padrão o valor do MinWidth é 20, e ao dar o Resize, se a quantidade de colunas da grid for um pouco grande, ele vai ajustar e chegar ate o valor do MinWidth.
Acredito que a maioria das vezes esse recurso é utilizado para campos como descrições, nome, endereço, etc,
Sugiro pegar o valor definido do Width e popular o valor do MinWidth, assim o que estiver definido em tempo de projeto vai ser o tamanho mínimo.
Obrigado.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.