I'm afraid your original data source is gone after postback. The grid
serializes its data in ViewState by default so you don't necessarily have to
rebind after every postback, so that gives the illusion that your original
data source is still there - but it's not.
If you want your original data source object then you'll have to manually
store it between postbacks or requery your data source after the postback.

Signature
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
> Hi
> I have a gridview on my web page and I bind it to an object of my own
[quoted text clipped - 9 lines]
>
> How can I convert to my own object?
Doogie - 25 Jul 2007 16:01 GMT
> I'm afraid your original data source is gone after postback.
> I hope this helps,
Well, it helps but it's not what I was looking for. :) So I'm
assuming my best option is to store the data in a Session object and
then pull it out when needed?
bruce barker - 25 Jul 2007 16:21 GMT
yes. also you should turn off view state on the grid and re-databind on
postback.
-- bruce (sqlwork.com)
>> I'm afraid your original data source is gone after postback.
>
[quoted text clipped - 3 lines]
> assuming my best option is to store the data in a Session object and
> then pull it out when needed?