IrregGridView.Columns.Add(new GridViewDataColumn()
{
Header = x.DayNumber.ToString(),
HeaderTextAlignment = TextAlignment.Center,
TextAlignment = TextAlignment.Center,
Width = GridViewLength.Auto,
IsFilterable = false,
CellTemplate = (System.Windows.DataTemplate)
XamlReader.Load(@"<DataTemplate
xmlns='http://schemas.microsoft.com/client/2007'
xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
<StackPanel Orientation=""Vertical"">
<TextBox Width=""28"" Height=""22"" Text=""{Binding Path= ModelVLimit}"" IsReadOnly=""true""
TextAlignment=""Center"" FontSize=""9"" />
<TextBox Width=""28"" Height=""22"" Text=""2"" IsReadOnly=""true""
TextAlignment=""Center"" FontSize=""9"" />
<TextBox Width=""28"" Height=""22"" Text=""3"" IsReadOnly=""false""
TextAlignment=""Center"" FontSize=""9"" />
<TextBox Width=""28"" Height=""22"" Text=""4"" IsReadOnly=""false""
TextAlignment=""Center"" FontSize=""9"" />
</StackPanel> </DataTemplate>")
});