Return to Snippet

Revision: 12398
at March 12, 2009 17:27 by blackf0rk


Initial Code
ObjectDataSource.SelectParameters(#).DefaultValue = value
GridView.DataBind()

Initial URL
http://codefinds.blogspot.com/2007/11/objectdatasource-selectparameters.html

Initial Description
If you have a component being bound from an ObjectDataSource (like a drop-down menu, or a grid view) and you wish to change the value's SelectParameters. Where # is which SelectParameter you'd like to change. If there's just one SelectParamter, default is 0. Then reference your object that uses that datasource, in this case a GridView, to rebind.

Initial Title
ObjectDataSource SelectParameters

Initial Tags
data, object

Initial Language
VB.NET