Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Two related DropDownList box in GridView footer

Reply
Thread Tools

Two related DropDownList box in GridView footer

 
 
=?Utf-8?B?SiBMaQ==?=
Guest
Posts: n/a
 
      11-04-2006
I have a GridView with paging enabled with controls set up in the footer for
adding new rows. In one column, I have two related dropdown list controls,
DrowDown B's list should change depending on the selected value in DropDown
A. However, to maintain the viewstate of these control seems impossible. If
I populate DropDown A when (If !IsPostBack), then DropDown A would be empty
when I go to a different page of the GridView.

But if I just repopulating DropDown A regardless of IsPostBack, then I
won't be able to keep track of what the user has selected.





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto: embed a text box in a footer of a GridView's boundfield columnto get data prior to a row insert dcollier9@cox.net ASP .Net 0 10-16-2008 03:31 PM
DropDownList inside GridView: How to set SelectedIndex for the DropDownList? keithb ASP .Net 1 11-01-2006 05:24 AM
Any way to reorder how a datagrid is drawn (header/footer/items vs.header/items/footer)? Henrik ASP .Net Datagrid Control 1 07-06-2006 12:23 AM
GridView: Filter DropDownList for another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-29-2005 07:44 AM
GridView: Filtr DropDownList from another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-23-2005 01:31 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57