I have a nullable property and if the property is null then the editor doesn't appear for that cell. All other cells in the row work fine and If the property gets a value, then the editor works just fine. Could this be a bug or am I doing something wrong? I have records with initially null values for integers and only should get filled out through the editor - but the editor never takes me to edit mode for that cell!
<xcdg:DataGridControl
Name="ManageGrid"
ItemsSource="{Binding Source={StaticResource ManageGridView}}"
AutoCreateColumns="False"
CellEditorDisplayConditions="RowIsCurrent"
AutoCreateDetailConfigurations="True"
>
<xcdg:DataGridControl.View>
<xcdg:TableView ShowFixedColumnSplitter="False">
</xcdg:TableView>
</xcdg:DataGridControl.View>
<xcdg:DataGridControl.Resources>
<ResourceDictionary>
<Style TargetType="xcdg:GroupByControl">
<Setter Property="Visibility" Value="Collapsed"/>
</Style>
</ResourceDictionary>
</xcdg:DataGridControl.Resources>
<xcdg:DataGridControl.Columns>
<xcdg:Column FieldName="ActiveInd" Title="Active" Width="80"/>
<xcdg:Column FieldName="DeductionTypeName" Title="Deduction Type Name" Width="300"/>
<xcdg:Column FieldName="RankSeq" Title="Rank" Width="80" />
<xcdg:Column FieldName="DeductionTypeGroupEnumDescription" Title="Deduction Type Group" CellContentTemplate="{StaticResource DeductionTypeGroupTemplate}" Width="200">
<xcdg:Column.CellEditor>
<xcdg:CellEditor EditTemplate="{StaticResource DeductionTypeGroupListTemplate}" />
</xcdg:Column.CellEditor>
</xcdg:Column>
</xcdg:DataGridControl.Columns>
</xcdg:DataGridControl>
</Grid>
This is the property (RankSeq) that is giving me trouble:
public int? RankSeq
{
get
{
return m_RankSeq;
}
set
{
if (m_RankSeq == value)
return;
m_RankSeq =
value;
}
}