Sorry, but this just doesn't make any sense to me. In your example, you're firing off the Select method of the ObjectDataSource for every row in your GridView. This is highly ineffecient as you'd only see the results for the last row in your GridView both
in your TextBox and the results of the secondary ObjectDataSource. You should only be data-binding to a particular ObjectDataSource once.
ecbruck
All-Star
98783 Points
9691 Posts
Moderator
Re: Incorrect method signature: ObjectDataSource funktionality for the GridView.RowCreated event
Jan 30, 2008 01:11 PM|LINK
Sorry, but this just doesn't make any sense to me. In your example, you're firing off the Select method of the ObjectDataSource for every row in your GridView. This is highly ineffecient as you'd only see the results for the last row in your GridView both in your TextBox and the results of the secondary ObjectDataSource. You should only be data-binding to a particular ObjectDataSource once.
Microsoft MVP - ASP.NET