Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello All,

My Problem is when i double click on gridview row then get data into TextBox
I don't use Select event in my Gridview control

Framework 4.0 C#

Thanks
Posted
Comments
Mahesh_Bhosale 2-Sep-13 10:17am    
what did you want these operation on same page or different page?

 
Share this answer
 
v2
Comments
Giletwala Dhaval 2-Sep-13 10:32am    
Hello I don't use any control like HyperLink and Button in my gridview control
abbaspirmoradi 2-Sep-13 10:43am    
put your code here. use Improve solution Button.
In Gridview events double Click on SelectedIndexChanged Event and write code like:
C#
protected void Gridview1_SelectedIndexChanged(object sender, EventArgs e)
    {
       string firstCellText  = Gridview1.SelectedRow.Cells[1].Text;
       string secondCellText  = Gridview1.SelectedRow.Cells[2].Text;
       string thirdCellText  = Gridview1.SelectedRow.Cells[3].Text;            
       .........
       //continue till your cell number like above
    }
 
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