Hi,
Migrating from Infragistics 7.3 to 13.1.
How to set a column with AllowUpdate property - Yes or No - from RowEventArgs for webdatagrid?
Please provide sample in C# code behind.
Any help is highly appreciated. Please advice urgently.
Thanks much for the response. Appreciate!!
Hi Jeevitha Manickam,
Thank you for the update.
The InitializeRow event's RowEventArgs class only provides a reference to the GridRecord object being initialized on the server. The GridRecord class doesn't have a member which can be used to set cells to behave as read-only. Instead, I recommend using the ReadOnly property in the EditingColumnSetting class to achieve this behavior. Maya has attached a sample which demonstrates how to achieve this using inline markup in the following forum post:http://ko.infragistics.com/community/forums/t/59560.aspx
Please let me know which of the two approaches I've provided you prefer, and I will be happy to create a sample for you.
Hi Jose,
Thanks for the response.
Could you please provide a sample on how this can be achieved in InitializeRow with RowEventArgs.
This is very critical for us. Please help.
Hello Jeevitha Manickam,
Thank you for posting on our forums.
The WebDataGrid's GridRecord Class doesn't have a property for enabling or disabling updating. Instead, it has a CellEditing Class which can be used to access CellEditingClientEvents like EnteringEditMode. This event can be cancelled to prevent the entering of edit mode depending on the condition you have set.
Please let me know if you have any questions regarding this matter.