views:

38

answers:

0

Hello,


If we set GridView’s DataSourceID to SqlDataSource/ObjectDataSource and manually call GridView.DataBind(), then the select operation is performed first and then the update operation. But since select operation automatically resets edited values, data source doesn’t get updated, even though Updating and Updated events do fire.


a) Does Select operation reset GridView’s edited values because if it didn’t, then GridView wouldn’t have most recent data from the data source?


b) Is there a way to configure data source control in such a way, that when we’d manually call GridView.DataBind(), the source control would first perform update operation and only then select operation?


thanx