I have problems with the printing.
My grid
The print preview
The problems: - first row is grey (no data) - DataFilter doesn't work - wrong column size
moon80 said:- first row is grey (no data)
I don't have any idea why that's happening. Can you duplicate this in a small sample project?
moon80 said:- DataFilter doesn't work
Make sure when you call PrintPreview that you pass in the right flags to copy the grid settings over to the Print Layout. You might also need to re-apply the DataFilter to the print layout in the InitializePrintPreview event - I'm not sure if the grid is able to copy the editor from one layout to another.
moon80 said:- wrong column size
The printer uses different drawing units than the screen. It's usually a good idea to autosize the column in the print layout in the InitializePrintPreview event.