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

onClick event handler in C# from a DataGrid

Status
Not open for further replies.

ctenicki

Programmer
May 13, 2002
10
US
Hello,
I'm returning values from a (sql server)stored proc into a dataGrid in C#. The retuned values i have turned into clickable buttons for users to select. I'm trying to figure out how to get these buttons from the dataGrid to baiscally run the stored proc again to return new set of data while passing in the selected buttons corresponding value or id as the stored proc param. Or.... taking the "onclicked" item from the datagrid and running a while loop to return the next set of values? I don't know if this is making sense, but basically I want to create an event handler for "onclicked" items in my data grid.
any help would be greatly appricated.
Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top