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
1425
Enabling scroll bar in cells
posted

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.

 

Parents
No Data
Reply Children