Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
Printing unbound Grid
posted

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.

Parents
  • 45049
    Suggested Answer
    posted

    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.

Reply Children
No Data