Solved

datagrid click event

Posted on 2004-09-07
3
187 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
3 Comments
 
LVL 8

Accepted Solution

by:
bramsquad earned 50 total points
Comment Utility
   '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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now