In first job:
1. TableView1CellClick should need one line of code, presumably a TColumnStyleHelper method accepting the ACellViewInfo, instead of the whole procedure.
We should also have an overridden method that would accept a Column and TPoint (for form placing).
2. TableView1CustomDrawCell event code should a call to a class method that should be assigned after loading the columns if a ColumnStyle exists for any column. Would assume a class method being called after the calls to AssignViewColumns and LoadColumnLayoutFromString, which should assign a TColumnStyleHelper method to the Views CustomDrawCell if a style exists.
3. TColumnStyleHelper needs to support multi TableViews in same application.
New Project - add to old demo:
Adding calculated or other unbound fields to data-grid.
a. Save and load from XML we use.
b. Ability to enter some script to run like (5 + 5) and column should show 10 or show “hello world” or date() +2
c. Ability to enter calculation from other fields like filed5>4 or 2 fields
d. Ability to use a SQL statement inside the cell and refer to values from the row something like (Select QTY from Item here code= :[login to view URL] )
e. We can just as well add a web service that would return some code
f. In order not to slow down the grid display have the unbound values run in a separate thread and display when ready (a complex SQL may not display at first. This is ok)
g. The color features you made should work on this columns as well.
h. Add the same Conditions Handler you made for colors to work with the Unbound Column as well. If Value > 9 run SQL_1 if value >100 SQL_2
i. By Pressing Ctrl-right click on a Column bring up Drop-Down menu options “Set Column Color” , “Add Unbound Column” If it is a unbound column also have in menu “Edit unbound column”
I will send you a project someone did for me a while back calling a web service - this job is a add on to that and would be part of my enhanced DBgrid.