Formatted list with a datagrid next to it.

  • Thread starter Thread starter Mufasa
  • Start date Start date
M

Mufasa

I've got a table with rows in it. I then have detail records that goes with
that row. What I'd like ideally is to have a list of data on the left with a
table/grid/view/... on the right with the detail information.

Any way I can do this?

TIA - Jeff.
 
You can put a GridView control on the left, and a DetailsView to the
right of it. You can feed them with individual SqlDataSource controls,
and in the one for the DetailsView use a ControlParameter to get the
SelectedValue property of the GridView control (GridView needs the
DataKeyNames property set to the ID of the data). This can all be done
(so far) graphically using Visual Studio (or similar).

I found a related quickstart. Try the second to last sample.
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/data/detailsview.aspx

-Michael Placentra II
 
Back
Top