Go back to mobile site

 

Please note: The forums are currently intended for Kentico community. Although we monitor them time to time, we cannot guarantee a timely response. If you need a help with Kentico CMS, please feel free to send your message to support@kentico.com.

If you want to add new post or reply to post, please sign in.

Search: 

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
Kentico
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

1

Sitemap | Content Management System | E-commerce Software | Social Networking Software | Intranet | Online Marketing Solution | Copyright © 2004-2013 Kentico Software | Powered by Kentico CMS