Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Quentin #1
Update of unbound DropDownList in DataGrid help
Hi,
My disclaimer is that I'm a newbie to ASP.NET and the concept still gets me
now and then.
I've got a databound datagrid and added an unbounded dropdownlist via a
TemplateColumn. The datadrid is not updateable BUT I want to change 1 or
more dropdown values and only click once on the Update Button below and
update the values from the dropdownlist. Is it posible to get the bound
column values as well as the dropdownlist values when clicking once on the
update button?
<!-- STATIONS LIST for the above Type -->
<asp:DataGrid id="dgStations" runat="server"
AutoGenerateColumns="False" HeaderStyle-BackColor="Black"
HeaderStyle-ForeColor="White" HeaderStyle-HorizontalAlign="Center"
HeaderStyle-Font-Bold="True"
OnItemDataBound="StationsBinding"
Visible="True">
<Columns>
<asp:BoundColumn HeaderText="ID" DataField="StationID" />
<asp:BoundColumn HeaderText="Station" DataField="Name" />
<asp:TemplateColumn HeaderText="Subscriptions">
<ItemTemplate>
<!-- SUBSCRIPTION COST DROPDOWN for the above Subscription Type
and Station -->
<asp:DropDownList runat="server" ID="ddlSubscriptionCost"/>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
<asp:Button id="btnSubscribe" runat="server"
Text="Update"></asp:Button>
Thanks,
Quentin
South Africa
Quentin Guest
-
Bound datatable + unbound column in datagrid
Is is possible to create an ASP.NET datagrid that mixes bound data pulled from a database table with an unbound column created by the program? I... -
access textbox values that are unbound in datagrid
I am a .NET newbie and have a simple question. I have a simple web form wherein the user can enter qty (which is a textbox field) for items he... -
dropdownlist in datagrid
Just add a ddl to you footer and populate it like you do with a normal ddl... Are u facing any probs? Hths.. R. Thomas -
dropdownlist in datagrid.
ive been trying to experiment on dropdownlist in a grid..i cannot get anything to work...i tried to have some code in the editcommand using the... -
Hide UNBOUND datagrid cols?
Is there a way to hide an unbound datagrid column? The webform throws an error when I try to hide any of the columns that I do not have bound at...



Reply With Quote

