Welcome to the Xceed Community | Help
Community Search  
More Search Options

Setting specific columns readonly in Insertion Row

Sort Posts: Previous Next
  •  10-14-2009, 11:00 AM Post no. 24487

    Setting specific columns readonly in Insertion Row

    Hi,

    Is there a way to mark specific columns as readonly (non-editable) in the insertion row of the xceed datagrid?  Could anyone provide an sample on this?

     
    Regds,

    Amarnath M.

     

    Filed under:
  •  10-16-2009, 11:06 AM Post no. 24558 in reply to 24487

    Re: Setting specific columns readonly in Insertion Row

    Hi Amarnath,

    you can style the InsertionCell and use a DataTrigger that will set the ReadOnly property to True for the desired fieldname.

    For example:

    <Style TargetType="xcdg:InsertionCell">

                <Style.Triggers>

                    <DataTrigger Binding="{Binding Path=FieldName,RelativeSource={RelativeSource Self}}"

                                         Value="OrderID">

                        <Setter Property="ReadOnly"

                                        Value="True"/>

                    </DataTrigger>

                </Style.Triggers>

            </Style>

     


    Xceed - Software Developer and Technical Support
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.