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!
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>
Hi, thanks for the reply. When in the lifecycle of the grid would the AllowUpdate property be changed for that column? I have to do this programatically, and I believe that setting the AllowUpdate on the column to "No" after hooking the AddRow event would also disable editing that column in the AddNewRow, would it not?