DataBinding

DataBinding

Silverlight Field control using HTMLBridge

Have you ever thought “it would be really cool if I could create a field control for my publishing page that would interact with all the other field controls"? I’ll bet you have, I know you don’t want to admit it because the idea is madness but I’ll bet you have! (No? I guess I’m out on my own with that one then?) I’ve only really gotten into the latest version of Silverlight in the past few weeks and I have to say I’m impressed. The potential for integration with SharePoint is huge and that’s before we consider the...

DataBinding to SPListItemCollection

This is one of those things that I always forget about and end up having to debug. (Also for those planning to do MCTS, I guarantee that there will be a question about this one ;) ) While it is technically possible to databind to a SPListItemCollection, when you try to refer to any of the SPListItem fields by name you’ll end up with an error similar to this: [ArgumentException: Value does not fall within the expected range.] Microsoft.SharePoint.SPFieldMap.GetColumnNumber(String strFieldName) +161 Microsoft.SharePoint.SPListItemCollection.GetRawValue(String fieldname, Int32 iIndex) +56...