Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Please Help me for Datagrid

Please Help me for Datagrid

Scheduled Pinned Locked Moved Visual Basic
helptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    irshu
    wrote on last edited by
    #1

    Please Help in Datagrid. In Datagrid how to select a row on single click and edit row on double click. Thanx in advance with regards Irsh

    L 1 Reply Last reply
    0
    • I irshu

      Please Help in Datagrid. In Datagrid how to select a row on single click and edit row on double click. Thanx in advance with regards Irsh

      L Offline
      L Offline
      Lisana
      wrote on last edited by
      #2

      here is the code for select a row on single click: Private Sub dataGrid1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles dataGrid1.MouseUp Dim pt = New Point(e.X, e.Y) Dim hti As DataGrid.HitTestInfo = dataGrid1.HitTest(pt) If hti.Type = DataGrid.HitTestType.Cell Then dataGrid1.CurrentCell = New DataGridCell(hti.Row, hti.Column) dataGrid1.Select(hti.Row) End If End Sub Lisa

      I 1 Reply Last reply
      0
      • L Lisana

        here is the code for select a row on single click: Private Sub dataGrid1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles dataGrid1.MouseUp Dim pt = New Point(e.X, e.Y) Dim hti As DataGrid.HitTestInfo = dataGrid1.HitTest(pt) If hti.Type = DataGrid.HitTestType.Cell Then dataGrid1.CurrentCell = New DataGridCell(hti.Row, hti.Column) dataGrid1.Select(hti.Row) End If End Sub Lisa

        I Offline
        I Offline
        irshu
        wrote on last edited by
        #3

        Am working in asp.net in the webforms, this code is not working, could you please give me some other alternative for ths. Thanx

        D 1 Reply Last reply
        0
        • I irshu

          Am working in asp.net in the webforms, this code is not working, could you please give me some other alternative for ths. Thanx

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Your question would be better answered in the ASP.NET Forum. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups