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
550
Make a column readonly
posted

I have a reference column and I want to make it readonly in the xamlDataGrid.  How?

Parents
  • 69686
    Verified Answer
    posted

    Hello,

    You can set the AllowEdit property of the desired column like this:

                           <igDP:Field .... >
                                <igDP:Field.Settings>
                                    <igDP:FieldSettings AllowEdit="False" />
                                </igDP:Field.Settings>
                            </igDP:Field>

    or in the code-behid like this:

                xamDataGrid1.FieldLayouts[LAYOUT_INDEX].Fields[INDEX].Settings.AllowEdit = false;
    Hope this helps.

    Alex.

Reply Children