Git Product home page Git Product logo

nicegrid's Introduction

NiceGrid

Description of NiceGrid /author Priyatna/

NiceGrid is a Delphi component that aimed to be a standard string grid replacement. It is written from scratch, not descended from TStringGrid. The main reason why I write this component is to have a grid component that nice and smooth. Here's some feature of NiceGrid:

  • Headers can be merged and or multilined.

  • Smooth scrolling, not aligned to top left cell coordinate.

  • All aspect of grid colors can be customized: header light color, header dark color, header color, grid color, text color, etc.; resulting a real nice looking grid.

  • Alternate row color.

  • Can be customized at design time.

  • Each column can have its own horizontal and vertical alignment, color, and font.

  • Each column can be hidden.

  • Can be auto fit to width.

  • Can be auto calculate column width.

  • BeginUpdate and EndUpdate method for bulk cells access. Since it is a new component, there are several main differences between NiceGrid and TStringGrid:

  • Headers are excluded from cells, unlike TStringGrid that treats fixed rows as regular cells (Row 0, for example), Cells[0,0] in NiceGrid will access the top left editable cells, not fixed cell.

  • The only way to access the data is using Cells property or using direct array referencing style: NiceGrid1[0,0]. There are not (yet) Cols, or Rows property.

  • FixedRows -> Header, FixedCols -> Gutter.

2014-10-15, author Nedko Ivanov

  • Added Options property (ngoMultiCellSelect, ngoThemed, ngoExcel)
    • ngoMultiCellSelect - allows multi cell select
    • ngoThemed - use Windows theme support instead of original owner drawn selection
    • ngoExcel - enable/disable excel like capabilities (the small dot on the right bottom selection corner)
  • Added property EditorType to Column : (ngetEdit, ngetEditInteger, ngetEditFloat, ngetCombo, ngetComboNoEditText)
  • Added key F2 for begin edit
  • Added event OnEditorCreating and OnEditorCreated (allows to fill in lines in combo box cell editor)
  • Removed component TNiceGridSync
  • Removed additinal support for caret
  • Added event OnFormatText to both grid and column objects
  • Added event OnGetCellColor
  • Added event OnDrawBackground - allows the app to draw the background itself instead by the default grid code
  • Added enumerator for enumerating grid rows with the "for-in" statement

For sample see BasicDemo

nicegrid's People

Contributors

nedich avatar

Stargazers

 avatar

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.