Hello!
I am migrating from UltraWebGrid to WebDataGrid and I have this column
<igtbl:TemplatedColumn DataFieldName="Ultra" AllowUpdate="Yes" DataType="bool" Width="62px">
Do I have to use the TemplateDataField?
In that case, shall I replace "DataFieldName" with "Key"? And what about "AllowUpdate"? because is not a valid option in the TemplateDataField...
Thank you very much!
Hello,
Thank you for contacting Infragistics!
That is correct that for template columns in the WebDataGrid you will want to use a TemplateDataField. Since the TemplateDataField isn’t directly bound to data you won’t use the DataFieldName. It is recommended to set the Key for all of your columns as by Key is one of the ways to access them.
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebDataGrid_Column_Templates.html
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebDataGrid_Using_Item_Template.html
As for AllowUpdate enabling or disabling editing is done though the behaviors and column settings in the EditingCore/CellEditing behavior:
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebDataGrid_Cell_Editing.html
Which you can see done though the code behind in the following sample:
http://es.infragistics.com/products/aspnet/sample/data-grid/edit-mode-actions
Please let me know if you have any further questions concerning this matter.