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?
Hi, this is still an outstanding issue for me, albeit a lower priority to resolve. I realize in my initial description I perhaps was not quite as clear as I should be.
I have a grid with an AddNewRow that should remain editable at all times. After the user commits a new row to the grid, that new row should no longer be editable. In other words, only the AddNewRow should ever be editable, whereas all other rows should be read only.
My problem is that if I set the AllowUpdate property during InitializeLayout to No, the AddNewRow is not editable either.
However, within the AddRow handler there does not seem to be a property to change the editability of the cell/row at that time. AllowUpdate only exists on the Column-level, and the IsEditable property of the cell does not seem to do anything.
Thanks in advance for your help.
I have the same issue.
Someone can help us?
Hi
Are you able to resolve this as i am also having the same requirement please let me know