Hi Team,
We are using Infragistics Win Forms version 13.2.20132.1000.
We are using UltraWinGrid containing 2 columns say Department ID and Department Name
The criteria is to disable the Department ID column but enable the same on new row template.
i.e. A new department id can be added but an existing department should not be allowed to update.
Please help in this regard.
Thanks,
Sudheendra
Hi Sudheendra,
Thank you for posting in our forum.
What you could do in your case is to set the column’s Activation property to NoEdit. Then you will need to handle the InitializeTemplateAddRow event and in it set the Activation of the cell from the non-editable column to AllowEdit. Also you will need to set the cell’s IgnoreRowColActivation property to true. This will make the all the cells that were already present non-editable and the cells that come from the TemplateAddRow editable. Then you will only need to set the IgnoreRowColActivation of the cell back to false once the data has been entered, for example in the AfterExitEditMode event.
I have attached a sample that demonstrates this suggestion.
Please let me know if you have any additional questions.
Thanks for the solution Dimitar !
Application is working as expected
Regards,
Sudheendra D G
Thank you on posting this sample.
This helped me to solve my issue too.