Thread: Bug Base Query
View Single Post
 
Old December 12th, 2006, 05:08 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Yeah, you could do.

First, define the DataList and a datasource inside the template for the GridView item

Next, handle the SelectedIndexChanged event of the GridView to trigger some code when the user selects an item. Inside this event, get the required data from the database directly, or make sure the *DataSource (like an ObjectDataSOurce) control is triggered to get its data from the database.

Does this help?

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: Voodoo People by The Prodigy (Track 5 from the album: Music For The Jilted Generation) What's This?