|
|
 |
| ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

October 9th, 2003, 10:19 AM
|
|
Registered User
|
|
Join Date: Oct 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Datagrid update, dropdownlist database insertion
I am creating a web application where i insert som data to a datagrid, with a sqlquery. this part works fine. now i want to update the information, and i have added the update field to the datagrid. all the fields becomes editable, but in one of the columns i want a dropdownlist, which has been filled with data from another sqlquery. the examples found in the quickstart, only uses hardcoded data to the picklist in a template column. is there any way to get my data from a query into the dropdownlist in my datagrid?
sincerely Herman
|

October 9th, 2003, 11:14 AM
|
 |
Friend of Wrox
Points: 16,368, Level: 55 |
|
|
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Presuming that you already have the dropdownlist in place in the datagrid, you just need to databind it just like any other bindable control.
Peter
|

October 11th, 2003, 02:31 AM
|
|
Registered User
|
|
Join Date: Oct 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I can't get the data bind'ed to the control, but in another forum, someone told me to add some code to the HTML file instead of the codebehind file, where i use a function to return the datasource as a dataset, som now it works :0)
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |