Microsoft
Software
Hardware
Network
Question : Silverlight convert XAML to xaml.cs code at runtime
eaderStyle
>
HeaderStyl
e>
Following code can create a column at runtime, but I would like to use multiple line column haeader as shown above.
DataGrid dataGrid1 = new DataGrid();
dataGrid1.AutoGenerateColu
mns = false;
DataGridTextColumn col1 = new DataGridTextColumn();
col1.Binding = new Binding();
col1.Width = DataGridLength.Auto;
col1.Header = "Auto";
dataGrid1.Columns.Add(col1
);
Thanks,
Ashok
Answer : Silverlight convert XAML to xaml.cs code at runtime
Try
col1.Header = "Department\n" + "Dates";
Random Solutions
SSL Popup windows stop showing up as trusted sites
How do I insert HTML file or Meta Tag ?
Visual Studio SQL Best Practices
How to update SQL table from another SQL Table based on a condition
Expand Indicator Not Showing in Datasheet View
CImage ReleaseDC Exception Mystery
Query showing Last Results only
Debugging buttons disabled in visual studio 2008
Software from Windows 95 O/S
The string was not recognized as a valid DateTime. There is a unknown word starting at index 0.