gridview help please

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
i have a simple gridView that contains 2 columns with a dropdownlist in each
column. for instance, when a user selects a product category from ddl1 then
ddl2 will filter the products table for that category id.

i've made some progress since my last post with the help of google docs. but
here's how where i'm at so far. with ddl1_selectedIndexChanged i load up ddl2
based on ddl1.selectedValue (which is the categoryid)

when i load the gridview from the database i can't seem to get the ddl2 to
load it's selectedvalue from the value that stored in the database? since i'm
loading ddl2 when ddl1 changes i don't think the databound for the 2nd column
has occured yet so i don't know how to set the selectedvalue for ddl2 ?

thanks,
rodchar
 
is ur database specifying which value needs to he selected as a default value?
if so execute another scalar to find out the value and set the ddl2.SelectedValue to the scalar.

-gkopparam

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
Back
Top