databinding issue in dropdownlist
-
I have two datasets one is used to fill the dropdownlist values. Second one points to the value to be selected in dropdownlist. Datatextfield (string), value field(string) are set at runtime in pageload databinding is taking place in pageload only once when page loaded for firsttime. The Issue is Iam not able to select the value according to second dataset record. The problem is since these are usercontrols many pagebinding is taking place and selectvalue, selected index everything is failing at some point can anyone help in this Padvit
-
I have two datasets one is used to fill the dropdownlist values. Second one points to the value to be selected in dropdownlist. Datatextfield (string), value field(string) are set at runtime in pageload databinding is taking place in pageload only once when page loaded for firsttime. The Issue is Iam not able to select the value according to second dataset record. The problem is since these are usercontrols many pagebinding is taking place and selectvalue, selected index everything is failing at some point can anyone help in this Padvit
if you don't reload your ddl's at every reload set EnableViewState to true. if you do reload them right before you do, set the selectindex in an integer and set it back after reload. You can also try to bind your grid in the Pre_render eg. Then you're UserControls are completely loaded. PS: You're post wasn't very clear at what your gaining at so if I misunderstood, my apologies. Good luck. No hurries, no worries.
-
if you don't reload your ddl's at every reload set EnableViewState to true. if you do reload them right before you do, set the selectindex in an integer and set it back after reload. You can also try to bind your grid in the Pre_render eg. Then you're UserControls are completely loaded. PS: You're post wasn't very clear at what your gaining at so if I misunderstood, my apologies. Good luck. No hurries, no worries.