I am using SL LOB 2009.2 release 2099
I wanted to change a column to have stacked headers because the header text was wider than the data, and I need the real estate. The users need to be able to enter data into this column. When I changed it to a templated column, I can no longer edit in that cell. Any ideas?
So, I changed the XAML for this column from:
506 <igGrid:TemplateColumn Key="PercWorkComplete"
507 Width="0.5*"
508 HeaderText="%WorkComplete"
509 CellStyle="{StaticResource myCellMainRow}">
510 <igGrid:TemplateColumn.ItemTemplate>
511 <DataTemplate>
512 <TextBlock Text="" />
513 </DataTemplate>
514 </igGrid:TemplateColumn.ItemTemplate>
515 </igGrid:TemplateColumn>
To:
517 <igGrid:TemplateColumn Key="PercentComplete"
518 HorizontalContentAlignment="Center"
519 CellStyle="{StaticResource myCellMainRow}"
520 ValueConverter="{StaticResource NumConverter}"
521 ValueConverterParameter="{StaticResource PercentFormat}"
522 EditorStyle="{StaticResource myEditorStyleTextBox}"
523 Width="0.5*">
524 <igGrid:TemplateColumn.HeaderTemplate>
525 <DataTemplate>
526 <TextBlock HorizontalAlignment="Center"
527 Text="%Work Complete"
528 TextWrapping="Wrap" />
529 </DataTemplate>
530 </igGrid:TemplateColumn.HeaderTemplate>
531
532 <igGrid:TemplateColumn.ItemTemplate>
533 <DataTemplate>
534 <TextBlock Text="{Binding PercentComplete, Mode=TwoWay, Converter={StaticResource NumConverter}, ConverterParameter={StaticResource PercentFormat}}" />
535 </DataTemplate>
536 </igGrid:TemplateColumn.ItemTemplate>
537
538 </igGrid:TemplateColumn>
Uh, nevermind. On a whim, I tried something out and I answered my own question. The issue was lines 520 and 521. Those are not needed in that section