A few months ago i was told that there was a bug that would might be fixed soon
"As for the event not being raised, i looked into the code, and there is a bug, where it only fires for TemplateColumns that are bound to data. I have logged an issue for it, and it should be fixed in our next ServiceRelease."
Has this issue been fixed yet?
Hi,
Yes, this has been fixed and verified in our last 2009 ServiceRelease which was shipped end of November 2009.
Have you tried applying the ServiceRelease?
HTH,
I have version 9.2.20092.1007.
I just tested this and it the cell control attach still does not work for any cell in columns that i create with the following loop:
while (currentDate <= finishDate)
{
var tc = new TemplateColumn();
tc.HorizontalContentAlignment = HorizontalAlignment.Left;
tc.VerticalContentAlignment = VerticalAlignment.Top;
tc.ItemTemplate = (DataTemplate)Resources["myCellTemplate"];
//var tc = (TemplateColumn)Resources["TemplateColumn"];
tc.HeaderText = currentDate.Value.ToString("ddd\nMM/dd");
tc.Tag = currentDate.Value.ToString("yyyy/MM/dd");
tc.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
//tc.HeaderStyle = App.Current.Resources["HeaderCellControlStyle1"] as Style;
tc.CellStyle = Application.Current.Resources["RedStyle"] as Style;
tc.Key = "day" + count++;
TaxonomyGrid.Columns.Add(tc);
currentDate = currentDate.Value.AddDays(1);