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
  1. Home
  2. General Programming
  3. Visual Basic
  4. put tooltip on grid column

put tooltip on grid column

Scheduled Pinned Locked Moved Visual Basic
csharpcsshelptutorial
3 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.
  • D Offline
    D Offline
    deepalititi
    wrote on last edited by
    #1

    how to put tooltip on the datagrid column header and also on cell of that column using vb.net 2003? plz help if anyone knows.here datagrid is bound at runtime.

    X 1 Reply Last reply
    0
    • D deepalititi

      how to put tooltip on the datagrid column header and also on cell of that column using vb.net 2003? plz help if anyone knows.here datagrid is bound at runtime.

      X Offline
      X Offline
      Xandip
      wrote on last edited by
      #2

      Try to post your Query only once. For putting the tooltip on each cell, try the MouseMove event of the datagrid. Enter the Required ToolTip there.. Hope this helps..

      The name is Sandeep

      A 1 Reply Last reply
      0
      • X Xandip

        Try to post your Query only once. For putting the tooltip on each cell, try the MouseMove event of the datagrid. Enter the Required ToolTip there.. Hope this helps..

        The name is Sandeep

        A Offline
        A Offline
        ashamsa
        wrote on last edited by
        #3

        In the grid's Mousemove Event Use this code to display the contents of Cell as tooltip Hope this helps dim str as string = "" Dim pt As Point = New Point(e.X, e.Y) Dim hti As DataGrid.HitTestInfo = gridName.HitTest(pt) If gridName.VisibleRowCount > 0 Then Dim bmb As BindingManagerBase = frm.BindingContext(gridName.DataSource, gridName.DataMember) If hti.Row < bmb.Count And hti.Type = DataGrid.HitTestType.Cell Then str = gridName.Item(hti.Row, hti.Column) ' Or the required tool tip Else str = "" End If Else str ="" End If if str <> "" then ToolTip1.SetToolTip(sender, str)

        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