I''m trying to clear the selection in the GridPrintDocument. Is grid.Selections.Clear() the right method ? Cause it''s not removing the selection. If it is i''ll try somethign else. What is hapening is that when a cell is selected the data in it is not being printed, this would be a fast fix.
Thank!
ST
stanleyj
Syncfusion Team
January 13, 2006 11:31 AM UTC
Hi Stephane,
I think you are using GridControl. I tried printing with selection and could not see any problem. The selections were also cleared for the grid.Selections.Clear() method call before printing.
Can you see any odd behavior in the samples that we ship?
Best regards,
Stanley
AD
Administrator
Syncfusion Team
January 13, 2006 04:23 PM UTC
Does _gridcontrol.Selections.Clear() also work when you have text selected (highlighted) in a cell ?
ST
stanleyj
Syncfusion Team
January 13, 2006 04:48 PM UTC
Hi Stephane,
No, but the text selected in a cell are to loose its focus as soon as other control is activated. The selections of cells are the one that remains unaffected when the focus is not on the grid. The Selections.Clear are for the selections of cells and not for the selection of text in a cell.
What exactly is your problem?
Best regards,
Stanley
AD
Administrator
Syncfusion Team
January 13, 2006 06:36 PM UTC
I modified your version of the print to fit on page, now it''s print to fit on x pages. When a cell if highlighted, the highlighted text is not printed unless I do a pritn preview before. I know the problem has to be in my code since your version works but I can''t find where it is, so in the mean time, i''m willing to add this small hack (un highligh text when someone want to print).
ST
stanleyj
Syncfusion Team
January 14, 2006 11:17 AM UTC
Hi Stephane,
How are you highlighting the text, Is that right you are manually selecting the text in a cell? If so that selection is not to be present when clicking anywhere else. As an workaround try moving the current cell.
this.gridControl1.CurrentCell.MoveRight();
Best regards,
Stanley