[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

datagrid click event

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
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 response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

656 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