Gridview with custom object datasource

rcombs4

Well-known member
Joined
Aug 6, 2008
Messages
189
Programming Experience
3-5
Hi, I have a question about getting the underlaying datasource from a gridview. I've tried a few things and read some other forums that say you can but I didnt think you could.

I have a Gridview which i give a datasource of a custom object. The object is ExpressCitationList, which is just a List of ExpressCitation objects. I'm trying to retreiving this information and work with it. I've always used the cell collection property and had to hard code the column numbers to match the individual datafield. Is there a way to get ExpressCitation object out of the gridview? Or even the ExpressCitationList?

I've tried the obvious
  1. expresscitationlist = gridview.datasource
  2. expresscitation = gridview.row(i).dataitem
obviously not real code but those ideas resulted in object reference errors.

Thanks for any insight.
 
Back
Top