Hi,
I have two columns in my XamDataGrid. In on of the columns, I want to fix maxheight, and width to be Auto (which means it should adjust with column resize, have text wrap depending upon available width and also have vertical scroll bar to appear as auto. Width and height are set but wrapping doesn't work and scrolling also doesn't appear.
This is how I am trying to achieve this.
f.DataType = typeof(string); f.Settings.EditorType = typeof(XamTextEditor); f.Settings.EditorStyle = new Style(typeof(XamTextEditor)); f.Settings.EditorStyle.Setters.Add(new Setter(XamTextEditor.TextWrappingProperty, TextWrapping.Wrap)); f.Settings.EditorStyle.Setters.Add(new Setter(XamTextEditor.VerticalScrollBarVisibilityProperty, ScrollBarVisibility.Auto));
Thanks,
Imad.
Hello Imad,
Thank you for the provided feedback. Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Kasimir thanks for your reply.
Sorry got busy with few other things. Will surely give feedback once i work with your solution.
I am just checking if you require any further assistance on the matter.
I have looking into the issue that you have described and I could not manage to reproduce it. I have created a sample application and used the code snippet that you have provided, in the FielLayoutInitialized event handler of the XamDataGrid. When typing into a cell in th eXamDataGrid the text in the cell is wrapped and the cell’s height is changed in order for the text to fit. I have tested the sample application with the latest service release for version 11.2 (11.2.20112.2125)
Please let me know if you can reproduce the same behavior using my sample application, or I have misunderstood you in any way.