We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to bind data from ObjectDataSource control to Grid DropdownEdit Column?

To bind the ObjectDataSource to the Grid columns, SelectMethod of the ObjectDataSource can be used. DataObjectMethod of the ObjectDataSource is defined and later in the required place, its data can be utilized. In the Page_Load method, Columns DataSource can be assigned with the ObjectDataSource. This has been discussed in the following steps.

Render the Grid and ObjectDataSource:

 

Assign DataSource to the Grid and Required Columns:

 

Under App_Data folder, place the DataObjectMethod definition with the TypeName property of the ObjectDatasource.

 

 

Figure: Grid with Dropdown bound from ObjectDataSource.

Article ID: Published Date: Last Revised Date: Platform: Control:
8917 07/06/2018 07/06/2018 ASP.NET Web Forms Grid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.