Dynamic datagrid

  • Thread starter Thread starter bshannon
  • Start date Start date
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
 
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
 
Back
Top