Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear

I added a columns both Bounded and Template field columns manually.

Now i have button which is out side the gridview
When i click the button
then get current rowindex of gridview

And that data I want to pass in another page textbox.

Please suggest me if any solution is there
I cant use rowcommand for it. If it is possible then how



please help me
Posted
Comments
Supriya Srivastav 6-Jan-12 1:08am    
What do you mean by current rowindex,whether it's selected or any other event occured on which basis you want to get index.

Dear Jagadeesh,

Check this link, I think it gives you solution for your problem

http://weblogs.asp.net/gurusarkar/archive/2010/09/22/get-gridview-rowindex-upon-button-click.aspx[^]
 
Share this answer
 
v2
Comments
Jagadeesh Bollabathini 6-Jan-12 0:57am    
it is for button which is in the gridview
But I want for out side the gridview

I tryed it not working

Please help me
If you want to get the selected index of gridview,you can try,

int index=Gridview1.SelectedIndex;
 
Share this answer
 
Comments
Jagadeesh Bollabathini 6-Jan-12 1:13am    
It is not working
Because I am not selecting any row

But there is a focus on textbox which inside the gridview
Now I want that textbox rowindex
on button click, But the button outside the gridview
How can i get


Thank You
EklavyaVerma 5-May-15 6:00am    
dcfvsvsfvsdvsdvsdv
Member 10787761 24-May-14 6:21am    
i have two aspx page on first page show data in gridview through Dropdown.i wants that on next page data will show from Ist page gridview value.anybody can help me.
For Ex:Gridview have some value,show full profile of value using link button.

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