Hello all
I fill a UltraWinGrid completely manually because number of columns is very dynamic.I fill the cell's value in a procedure and then format the cell in the initialize row event depending on the actual value. This works very fine.
If I want to print () the grid Initialize row events are fired, butr I cannot get any of the cell's values in there to reformat the cell for printing.I tried Cell.Value, Cell.Tag everthing is always NULL.
Is there a way to get the value out of the cell?
Thanks in advance.
How are you "manually" filling the grid? Since WinGrid is a databound control, it must be bound to something. This might explain why your cells' Value properties aren't giving you the data you'd otherwise explain.
If you have a "fluid" data source, like you've described here, I suggest you use a WinDataSource control to contain the data. It's easier to add columns and rows to WinDataSource than it is to try to add these directly to the grid, and will likely prevent the issue of your cells' values being somehow lost.
Thanks for the answer.
The grid is bound to a UltraDataSource which has one column designed.At runtime I'm adding a dynamic number of columns to the grid.
OK, I now changed and write to the datasource-cells. My values survive!
Thanks for the hint.