Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
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 Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2003, 09:19 AM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to herman
Default 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

 
Old October 9th, 2003, 10:14 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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
 
Old October 11th, 2003, 01:31 AM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to herman
Default

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)






Similar Threads
Thread Thread Starter Forum Replies Last Post
datagrid, innertext, javascript, database update vsr ASP.NET 1.0 and 1.1 Professional 1 November 6th, 2007 05:54 PM
Update Access Database with datagrid jeff_M General .NET 2 May 19th, 2007 10:44 AM
dropdownlist in datagrid update keyvanjan ASP.NET 1.0 and 1.1 Basics 4 September 18th, 2006 03:20 PM
update DataBase from DataGrid AnwarSadique C# 1 July 26th, 2006 09:03 AM
Problem with update database in datagrid annie_stwg ASP.NET 1.0 and 1.1 Basics 4 April 1st, 2006 12:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.