I am new to the xamDataGrid. I need to know how to create an unbound checkbox in a column in my xamDataGrid. I have googled everywhere and everything I try doesn't seem to work.
Can someone provide me with the complete XAML code for creating a checkbox?
Thank you,Glenn
Hi there, How can I do this in code behind ?
Hello Systech,
Thank you for your post.
It has been a while since you have made your post, in case you still need support I will be glad to assist you further.
I have been looking into it, but it seems like I am missing something from your scenario, so if this is still an issue for you, could you please send me, an isolated sample project, where this is reproduced, so I can investigate it further for you.
Looking forward to hearing from you.
Hi how would I be able to remove the ThreeState and also set the IsChecked default value ? I have tried using a CellValuePresenter Style: but when I try and access the value via code :
The value returned is nothing, and I don't know how to access the .ischecked property.
For Each Record As DataRecord In XamBatches.Records
If Record.Cells("Select").Value = True Then
<Style x:Key="ShowInChartCellStyle"
TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
<igEditors:XamCheckEditor IsChecked="False"
IsThreeState="False" HorizontalAlignment="Center" VerticalAlignment="Center" />
ControlTemplate>
Setter.Value>
Setter>
Style>
<igDP:UnboundField Name="Select" Visibility="Visible" Width="auto">
<igDP:UnboundField.Settings>
<igDP:FieldSettings CellValuePresenterStyle="{StaticResource ShowInChartCellStyle}" />
igDP:UnboundField.Settings>
igDP:UnboundField>
Hi Krasimir,
I got it working! Thank you for your help.
Glenn
Thank you for your help. I tried the code you gave me however I get an error with the "<igDP:FieldSettings EditorType="{x:Type igEditors:XamCheckEditor}"/>" block of code. The problem is it says "type 'igEditors:XamCheckEditor' was not found". Is there anything I am missing like a reference?