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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

selcecting from a grid

Status
Not open for further replies.

jockey

Programmer
Nov 18, 2003
34
GB
Hi

I have looked at several post in here yet I am still unable to get this to work.

I have a grid that is populated with a list of customers. What I want to be able to do is to click on the grid and retrieve the information stored in that row. This data would then be displayed in textboxes or placed into session variables.

I just cant get any data to be returned.

Any help gratefully accepted

Jamie
 
Jamie,

Do you have a Select Button on your Grid? If so, the Select Button will need code to select the row. If you are only wanting the information stored in Text Boxes on the row this can be done as part of the datagrid, but you can do many things with the events behind the datagrid. Generally, you do need a button to click on instead of just clicking on the row.

has great references for the datagrid.

Hope this helps.

Hope everyone is having a great day!

Thanks - Jennifer
 
do you want to display the information on the same page, or on a new page?

If a new page then place a hyperlink column in the grid and set the URL to the info page and querystring to the unique ID of the company. On the 2nd page get the ID from the query string and query your data source to pull the information you are looking for.

If you want the information on the same page there are 2 ways to do it. Edit button, which will allow you to edit the information directly in the row. Or select button which will highlight the row and then in code you can decide how to use the information.

Jason Meckley
Database Analyst
WITF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top