tags:

views:

79

answers:

1

I'm trying to find how to access the "index" or "position" of questions in a SharePoint survey list from the object model. I was hoping to find it with SPField.RowOrdinal but its always 0. Any thoughts?

+1  A: 
  list.Items.Indexof(SPListItem myitem);

Where "list" is your SPList object; and myItem is the SPListItem you're determining the index of.

Jason Watts
this gives me the index of the response in whole. I need the index of the question itself on the list.
andrew