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
How do I change the date format when submitting InfoPath form to a SharePoint Form Library?
Visio 2007: Can't access UML diagram properties
Can I include other HTML files in a single HTML file?
Cannot run SQL 2005 SSIS Job
How do I remove a Domain Controller from Active Directory
C# WebService (tcp.soap) from Java
need a script to convert csv to txt
Graduated Commission Scale
restoring a .bak file SQL SERVER 2005
Microsoft SQL server 2005 wont start after updates.