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. Web Development
  3. ASP.NET
  4. How to keep a tooltip for Pageindex of numeric in Datagrid

How to keep a tooltip for Pageindex of numeric in Datagrid

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdesignhelptutorial
2 Posts 2 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.
  • N Offline
    N Offline
    narendrakumarp
    wrote on last edited by
    #1

    Hi One & All This is Naren, I need some small help regarding PageIndex "ToolTip". I got for Header , items but i couldn,t find to get ToolTip for Pageindex . So plz help me to get the solutions. I m working in Asp.net with C# web Application. I wrote some code in datagrid_ItemCreated() ie., private void dgEmp_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if((e.Item.ItemType == ListItemType.Pager)) { e.Item.Cells[0].ToolTip = "Click to get this page"+Currentpageindex; } } This we wrote for PageIndex ToolTip. "Output" which i m getting is ""Click to get this page 0" for all pageindexes. So Plz tell me the solutions to do. Thanking U, Naren.

    please help me

    M 1 Reply Last reply
    0
    • N narendrakumarp

      Hi One & All This is Naren, I need some small help regarding PageIndex "ToolTip". I got for Header , items but i couldn,t find to get ToolTip for Pageindex . So plz help me to get the solutions. I m working in Asp.net with C# web Application. I wrote some code in datagrid_ItemCreated() ie., private void dgEmp_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if((e.Item.ItemType == ListItemType.Pager)) { e.Item.Cells[0].ToolTip = "Click to get this page"+Currentpageindex; } } This we wrote for PageIndex ToolTip. "Output" which i m getting is ""Click to get this page 0" for all pageindexes. So Plz tell me the solutions to do. Thanking U, Naren.

      please help me

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      You need to have a look at the inner of the Cells and get reference to the hyperlink elements which represent the page indexes, you then can set the tooltip for each element.

      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