Solved

datagrid click event

Posted on 2004-09-07
3
192 Views
Last Modified: 2010-04-23
hi

    I have datagrid with one column as hyperlink column. how to find out which row has been clicked and also i want to caputure all the corresponding row values.
which event will be fired when a row is clicked. can anyone provide the code for this


thanks
sandeep
0
Comment
Question by:sandeep437
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
bramsquad earned 50 total points
ID: 12001112
   'click event handler is the one you want


    Private Sub dgTable_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgTable.Click
       'this gets the row number
       dim row_num as integer
       row_num = DataGrid1.CurrentCell.RowNumber

       'as far as the capturing all the corresponding rows, i ususally use my datasource and navigate through that
       'ill be happy to post code that way, if no one knows how to do it without
    End Sub

~b

0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question