473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

GridView & DDL!!

Hi All, I have a grid view with TemplateFieldColumn as DropDownList. So
bascially when a user decides to edit/update teh Row he gets a choice from
the DDL bascially 2 choices
<asp:TemplateField HeaderText="Hot" Visible="True">
<EditItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" >
<asp:ListItem Value="0">Hot</asp:ListItem>
<asp:ListItem Value="1">New</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateField>
..
My Update somehow isn't working...

<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/App_Data/mydata.mdb"
SelectCommand="SELECT [Part_No], [Hot], [New] FROM
[ItemTypes]"
UpdateCommand="UPDATE [ItemTypes] SET [Hot]=@Hot,[New]=@New
WHERE [Part_No]=@Part_No">
<SelectParameters>
<asp:ControlParameter Name="Choice"
ControlID="DropDownList1" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="Part_No" />
<asp:Parameter Name="Hot" />
<asp:Parameter Name="New" />
</UpdateParameters>
</asp:AccessDataSource>

I am struggling in the part where I can set the UpdateParameters...
Bascially ItemTypes is a table with PartNo,Hot=boolean,New=boolean

TIA
Jun 12 '06 #1
0 787

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: rob | last post by:
Here is my scenario: One of my aspx pages has a CheckBoxList (Item1, Item2) and a GridView. Then I have a database that has the columns Item1 and Item2 (among others) with the data type bit....
0
by: Robert Warnestam | last post by:
I've recently switched from using a DataGrid component to a GridView and now run in to some problems. My ambition is easy; first show a list of users in a GridView component and for each row in...
2
by: Lee | last post by:
Hello all, Fairly new to .net. Using VB.net/2005 I am having a bit of trouble implementing a data driven gridview with paging. I am binding the grid to a DataTable at runtime (which is...
0
by: Bruno Alexandre | last post by:
Hi Guys, I manage to do what I want with the GridView, using DataTable to popultate the GridView with just the products from the Office Stock I just show the products that the Office have in...
1
by: Kyle K. | last post by:
I would like to build my data pages such that the top of the page contains a GridView showing the data with 'Enable Select = true'. Below that I would like to have a FormView, that by default is...
0
by: singh79 | last post by:
Hi.. In My DropDown some Procedure Bind,My Drop Down name is Ddlpro ,(Bind By Table "PatProcedure") ,same Table PatProcedure again use and bind GridView ,In Gridviw I Can Take Template...
4
by: mik | last post by:
I've a gridview with a DDL in each row and I would like allow the user to open a new page (using a server button, image button, hyperlink... this isn't a problem) with the selected value of the...
0
by: Sody | last post by:
Hi, is in gridview any way how to control from codebehid if an itemtemplate in gridview will be set to visible = true / false ? here is an example of gridview with more itemtemplates ...
13
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.