Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
How do I add a checkbox to a xamDataGrid?
posted

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

Parents
  • 30945
    Verified Answer
    Offline posted

    Hello Glen,

     

    I am attaching a sample application that demonstrates an approach for adding a CheckBox to an UnboundField using a template for the CellValuePresenter. You can also set the EditorType property of the FieldSettings for the UnboundField in order to display a XamCheckEditor as a content for the cells in the field. This can be achieved as follows:

                <igDP:XamDataGrid.FieldLayouts>
                    <igDP:FieldLayout>
                        <igDP:UnboundField Label="CheckBox field">
                            <igDP:UnboundField.Settings>
                                <igDP:FieldSettings
                                    EditorType="{x:Type igEditors:XamCheckEditor}"/>
                            </igDP:UnboundField.Settings>
                        </igDP:UnboundField>
                    </igDP:FieldLayout>
                </igDP:XamDataGrid.FieldLayouts>
    

     

    If you need any further assistance please do not hesitate to ask.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    UnboundFieldWithCheckBox.zip
Reply Children
No Data