Hello,
I am using the Custom Control in the Exceed Data Grid as CellEditor in one of the Column. Now i am getting the custom control when the cell/column is in the Edit Mode. Now when i am selecting a value from the Custom Control. Its value is being selected but the column/Cell is not reflected with the Selected value.
<Window.Resources>
<xcdg:CellEditor x:Key="categoryEditor">
<xcdg:CellEditor.EditTemplate>
<DataTemplate>
<ComboBox BorderThickness="0"
MinHeight="22"
VerticalContentAlignment="Top"
SelectedValue="{xcdg:CellEditorBinding}"
FocusVisualStyle="{x:Null}">
<ComboBox.Resources>
<Style TargetType="Popup">
<Setter Property="TextElement.Foreground"
Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" />
</Style>
</ComboBox.Resources>
<s:String>A</s:String>
<s:String>R</s:String>
</ComboBox>
</DataTemplate>
</xcdg:CellEditor.EditTemplate>
</xcdg:CellEditor>
<xcdg:CellEditor x:Key="ucCategoyrEditor">
<xcdg:CellEditor.EditTemplate>
<DataTemplate>
<common:ucEnhanceControl x:Name="ucCategory"
MyText="{xcdg:CellEditorBinding}"
Loaded="ucEnhanceControl_Loaded"
FocusVisualStyle="{x:Null}">
</common:ucEnhanceControl>
</DataTemplate>
</xcdg:CellEditor.EditTemplate>
</xcdg:CellEditor>
</Window.Resources>
<xcdg:DataGridControl Name="dgcListView" AutoCreateColumns="False" ItemScrollingBehavior="Immediate" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" >
<xcdg:DataGridControl.Columns>
<xcdg:Column FieldName="Status" Title="Status" CellEditor="{StaticResource categoryEditor}"/>
<!-- Invisible columns -->
<xcdg:Column FieldName="Entity Category" Title="Entity Category" CellEditor="{StaticResource ucCategoyrEditor}"/>
</xcdg:DataGridControl.Columns>
</xcdg:DataGridControl>
Now, here for the Column Name="Entity Category", i m using custom control for the editing and cell editor is defined in the resource file which is fine but MyText="{xcdg:CellEditorBinding}" is not working although my MyText property which is also dependency property in the Custom Control which i am binding with the xcdg:CellEditorBinding.
So, Kindly reply me for the same. Kindly answer me for the same. As how to use the Custom Control in the Xceed Grid as the Cell Editor on how to bind the values with the Cell ?
Thanks,
Paras Sanghani
Nothing Is Impossible