Solved

datagrid click event

Posted on 2004-09-07
3
191 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

697 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