c# - Dynamic gridview based on dropdown -


i've got bit of chicken , egg.

i need bind gridview set of database values. gridview dynamic , columns, cells created @ run time.

as such, need re-bind grid on every postback in pre-init, init events after post back.

however, data used populate grid uses value dropdown box on same page. such, value of dropdown not accessible through viewstate until after init event (i.e. selected index first item in list until after on init).

how can access value of drop down in time rebind grid before pageload event?

if gridview has same number of columns, have dynamic query generate column names aliases, , rebind gridview on dropdown change?


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -