Upgrades Questions on upgrading to version 6.x.
Version 6.x > Upgrades > Problem after upgrade to 6 from 5.5 r2 View modes: 
User avatar
Member
Member
roy.vanderploeg-gaprc - 6/11/2012 11:43:59 AM
   
Problem after upgrade to 6 from 5.5 r2
I am upgrading site and I get an error with the following code.
object value = DataHelper.GetDataRowValue(CMSContext.CurrentDocument.DataRow, mDatyField);

The error is "CMS.TreeEngine.TreeNode' does not contain a definition for 'DataRow' and no extension method 'DataRow' accepting a first argument of type 'CMS.TreeEngine.TreeNode' could be found (are you missing a using directive or an assembly reference?)

Is there another way to do this?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/11/2012 6:01:46 PM
   
RE:Problem after upgrade to 6 from 5.5 r2
Hi,

DataRow was removed in version 6. I am sorry for this inconvenience. You need to use GetValue("columnName") or GetProperty("columnName") methods instead.

Best regards,
Juraj Ondrus