Posted By

blackf0rk on 03/12/09


select data object parameters source ObjectDataSource selectparameters

Versions (?)

ObjectDataSource SelectParameters

 / Published in: VB.NET


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.

  1. ObjectDataSource.SelectParameters(#).DefaultValue = value
  2. GridView.DataBind()

Report this snippet  

You need to login to post a comment.