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

Using Data Fields in Data Grids

Status
Not open for further replies.

twifosp

Programmer
Joined
Jul 25, 2003
Messages
186
Location
US
This is kind of off the wall... but...

I'm displaying a table in a datagrid.

DataGrid1
Code:
Column1 Column2 Column3
1234     text1   textA
1235     text2   textB
1236     text3   textC

Would it be possible to create a column link that does the following:

If a user was to click on a field on Column1 they it would take the value of the field, send it to a stored proc, and the DG would repopulate (or be replaced with another DG) on the same page?

I want to avoid using a hyperlink column because I don't want to send the user to another page.

Any ideas?
 
twi,

don't specify a target page; you will do a postback to the current page. in your page_load check to see if it's a postback, and in that if..else do your specified datapull.

Let me know if you have issues with this.

<< azariah >>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top