Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my requirement is selected Gridview row data will transfer to another page.under which event i will write that corresponding code(in windows forms i will write cellmouse click event similarly under which event i will write in Gridview Asp.net)
Posted

1 solution

Ramesh Reddy11111 wrote:
selected Gridview row data will transfer to another page

There are two things here:
1. having selected gridview row data
2. transfer data to another page

For 1 & 2 you need to have an event handler, a button event handler would be most suitable.

Flow would be like you select a row, click the button to transfer page, in the button event click handler, store the data in session/querystring/etc and then access the same in the new page.


Ramesh Reddy11111 wrote:
in windows forms i will write cellmouse click event

For something similar to this, you can have a checkbox as one of the column in the grid. You can keep checkbox as the row selector and the click event of checkbox can be used as an event to trigger the redirect to new page.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900