Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
Can any one tell me how to get a specific cell Index(or Column Index) or cell value of a row in grid view.
Actually i need the value of the cell, which the user clicks in grid view.Specially how to know the cell index or column name(index) which is clicked by user.
Please help me out.Thanks in advance.
Posted
Updated 13-Apr-14 20:11pm
v4
Comments
Maciej Los 13-Apr-14 17:11pm    
What have you done till now? Where are you stuck?
Saroj Kumar Sahu 14-Apr-14 0:27am    
thnks for response.
i know if i'll write GridView.SelectedRow.Cell[index].Text then i'll get the value but in selectedindexchanged,how do i know cell index value that the user clicks(suppose user clicks on cell 3 of row 2,how do i know cell 3 has been clicked.i need to pass that cell index as a parameter)

 
Share this answer
 
Comments
Rahul VB 13-Apr-14 23:28pm    
Very nice sir, but if we spoon feed them, they wont understand the importance of knowledge.
-Rahul
Maciej Los 14-Apr-14 2:02am    
Thank you ;)
Abhinav S 14-Apr-14 0:36am    
5! More links in alternate answer.
Maciej Los 14-Apr-14 2:03am    
Thank you ;)
 
Share this answer
 
Comments
Maciej Los 14-Apr-14 2:03am    
More links is always useful ;)

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