Hello,
I am facing an issue with accugrid, where the cell content looses its formatting (multiline) when it is clicked.
Initial view of cell's content:
123456
Once cell is clicked to copy the content of the cell, the cell's content is displayed as follows:
The following properties has been set:
CellClickAction --> EditCellMultiLine --> TrueCellDisplayStyle --> Default (Default is resolved to FullEditorDisplay)
this._accuGridPreviousNotes.DisplayLayout.Bands[0].Override.RowSizing = RowSizing.AutoFree;
Please suggest how I can resolve this issue i.e. on cell click the content is shown as original in multiple lines?
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.
My guess is that this is a problem with the text itself and the newline characters you are using. Make sure the value of the cell contains the correct newline characters (Environment.NewLine). You may be using Carriage Return or LineFeed alone when you really need both or vice versa.
You could try the following code lines:
ultraGrid1.TextRenderingMode = Infragistics.Win.TextRenderingMode.GDI;
ultraGrid1.DisplayLayout.Override.CellDisplayStyle = CellDisplayStyle.FullEditorDisplay;
and let me know if they suit your needs.