I got a column in a datagrid which is filled with data using some calculations done in a labelFunction.
now i got a second column, which need the data of the previous mentioned column.
normally you would type: item.Data or something, but that does not work for the calculated field.
how would i reference the first mentioned column in the labelFunction of the second?
i noticed you can reference any column with "item[columnName.dataField]", but that
pulls the source of the dataprovider, not the data that is generated with the labelFunction.
item[columnName.labelFunction] ofc doesnt work.
The cheap way is to reference the the other column's labelFunction and call
it again. It means that the labelFunction will be called twice per row.
You can get to the columns via DataGrid(owner).columns
Another possibility is to add the labelFunction to the data objects or a
subclass of the data objects.