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
55
AddNewRow vs update existing row editability
posted

I have a grid with an AddNewRow that needs all columns to be editable.  After the row is committed, the user should no longer be allowed to edit certain columns.  Is this achievable?

 Thanks!

Parents
  • 28464
    posted

    Hello,

    Yes, I think this is doable. You just need need to hook the server-side AddRow event and disable the editing of some columns by setting their respective AllowUpdate property to "No". Example:

     <igtbl:UltraGridColumn BaseColumnName="ProductID" DataType="System.Int32" IsBound="True"
                            AllowUpdate="No" Key="ProductID">
                            <Header Caption="ProductID">
                                <RowLayoutColumnInfo OriginX="2" />
                            </Header>
                            <Footer>
                                <RowLayoutColumnInfo OriginX="2" />
                            </Footer>
                        </igtbl:UltraGridColumn>

     

Reply Children