)
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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Platform: ASP.NET Web Forms |
Control: Grid |
Published Date: July 6, 2018 |
Last Revised Date: July 6, 2018

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.

2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon