.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

hot to find row index in gridview MouseClick event

Posted By: Santosh     Posted Date: July 11, 2011    Points:5   Category :Windows Application
hi

any body plz tell me,how to find the rowindex of a gridviw in MouseClick event for windows application.

Regards
Santosh

Responses
Author: Gowthammanju             
Posted Date: July 11, 2011     Points: 20   

Ya u can use


http://bshouman.blogspot.com/2008/03/get-gridviewrows-index-on-button-click.html

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Gowthammanju             
Posted Date: July 11, 2011     Points: 20   

u can also code as


currentgridrow.RowIndex


for retriving a values

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Narayanan             
Posted Date: July 12, 2011     Points: 20   

Hi,
Try this,
textBox1.Text = dataGridView1.CurrentRow[e.RowIndex].ToString();


Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend