?
Solved

datagrid click event

Posted on 2004-09-07
3
Medium Priority
?
193 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 200 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

764 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