user interface - How do get a Grid column to Auto size to content but not clip the content if it gets too large? -


I have the embedded datagroup inside the first column of a grid. I want the grid column to be content in auto size, But when I do this and the data grid gets too much (when the column is added by the user) the datagrid is cleared by the column. I basically need to maintain the scrolling behavior of DataGrid, but the data Contracts D for the ingredients and can not be harvested at any time.

  & lt; UserControl xmlns = "http://schemas.microsoft.com/ Winfx / 2006 / xaml / Presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml" xmlns: data = "clr- Namespace: System.Windows.Controls; assembly = System.Windows Controls.Data "& gt; & Lt; Border x: name = "layout" background = "white" & gt; & Lt; Grid horizontal alignment = "statch" & gt; & Lt; Grid.RowDefinitions & gt; & Lt; RowDefinition Height = "Auto" /> & Lt; RowDefinition Height = "Auto" /> & Lt; /Grid.RowDefinitions> & Lt; Grid.ColumnDefinitions & gt; & Lt; Column width = "Auto" /> & Lt; /Grid.ColumnDefinitions> & Lt; Border & gt; & Lt ;! - Toolbar contents goes here - & gt; & Lt; / Border & gt; & Lt; Data: Datagrid MaxHit = "350" grid. Raw = "1" /> & Lt; / Grid & gt; & Lt; / Border & gt;  

Have you tried something like this:

  & lt; Column define width = "auto" minwid = "80" maxwead = "200" />  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -