Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid question

Status
Not open for further replies.

liorlankril

Programmer
Nov 5, 2005
46
IL
I have DataGrid in my code:

DataGrid dg= new DataGrid();

I have in this DataGrid defenision of 3 BoundColumn:

BoundColumn bc = new BoundColumn();

the 3 columns are: FirstName, LastName, IDnumber

I want to do this: When the user click on any FirstName in the DataGrid, It will open more details about that person!!!

I dont want popup window, I want somthing like SelectedItemTamplate od DataList!!!!

How can I do it???


 
Just add a data list, and have the selected item button (in conjunction with selectedindexchanged event) in data grid pass a parameter to your stored procedure or whatever, telling it which row to display details on in your data list.

Hope this helps,

Alex

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top