Dynamic datagrid

B

bshannon

Can someone point me in a direction or show me an example
of creating a dynamic datagrid. Based on a users input I
would like to have the datagrid created progromatically
if possible. There are 4 possible scenerios of which
different data needs to be displayed from different
tables.

I have no problem creating datagrids using the GUI
interface but am not sure how to start one dynamically.
Otherwise my only option is to create all 4 and only load
the one that the user needs to see.

Thanks
 
T

Trevor Benedict R

Eventhough adding the contros during runtime should be the way, I would
add the 4 DataGrids as you mentioned and display only one at a time as
per requirement, hiding the rest and setting the ViewState to false for
these hidden Grids and reload the data whenever the user selection
changes.

This way your changes could be minimal when it comes to designing &
Tweaking the Grid.

HTH

Trevor Benedict R
MCSD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top