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
40
How to manage the editable status by column?
posted

The question is easy. I want one column in grid can not be edited while others can be edit. For now I only know the following codes to control the editable status but it can not work when controling by column.                  

 <igDP:XamDataGrid.FieldSettings>

      <igDP:FieldSettings AllowEdit="True" />

</igDP:XamDataGrid.FieldSettings>

Some one can help me. Thanks in advance.

  • 69686
    Verified Answer
    posted

    Hello,

    Each field's settings expose AllowEdit property as well. This way you will be able to set this per field, and not globally- for the whole XamDataGrid

    <igDP:FieldLayout>

                        <igDP:FieldLayout.Fields>

                            <igDP:Field Name="Field1">

                                <igDP:Field.Settings>

                                    <igDP:FieldSettings AllowEdit="False"/>

                                </igDP:Field.Settings>

                            </igDP:Field>

                            <igDP:Field Name="Field2"/>

    ....