API Questions on Kentico API.
Version 6.x > API > CMS.SiteProvider.CustomTableItem 'DataRow' property View modes: 
User avatar
Certified Developer 11
Certified Developer 11
jellison - 10/24/2012 6:23:14 PM
   
CMS.SiteProvider.CustomTableItem 'DataRow' property
I'm upgrading a site from 5.5R2 to 6. Some of our domain objects inherit from CustomTableItem. I noticed that the DataRow property is no longer available when I tried to compile. Is there another way to get the DataRow from CustomTableItem?

Thanks.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 10/25/2012 1:32:25 AM
   
RE:CMS.SiteProvider.CustomTableItem 'DataRow' property
Hi

Just try to search before asking... this issue was already solved on our forums :)

1. Problem after upgrade to 6 from 5.5 r2
2. DataRow error

Best regards,
Martin Danko

User avatar
Certified Developer 11
Certified Developer 11
jellison - 10/25/2012 11:23:28 AM
   
RE:CMS.SiteProvider.CustomTableItem 'DataRow' property
Thanks for the quick reply.

I actually did search...a lot! :)

I found that post, but it was in context to TreeNode. I was hoping CustomTableItem was different. I need the entire DataRow, not just individual properties. I guess I can just use GetItems as a work around since it returns a DataSet. It just seems cleaner code-wise to use GetItem.

Cheers,
Jason

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 11/4/2012 5:55:46 AM
   
RE:CMS.SiteProvider.CustomTableItem 'DataRow' property
Hi Jason,

unfortunately this is probably the only option due to API changes from v6. I think this is the result of unification of data model and data handling.

Best regards,
Martin Danko