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 search and highlight text in datagrid in .net 2.0?

How to search and highlight text in datagrid in .net 2.0?

Scheduled Pinned Locked Moved ASP.NET
csharphelptutorialquestion
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.
  • K Offline
    K Offline
    kandalu
    wrote on last edited by
    #1

    Hi, I am using .net 2.0. I want to search & highlight the text in datagrid like Edit->FindNext option present in NotePad, Word etc. I saw many examples to highlight the searched text within the datagrid at once. But I want to search the text one by one. If anyone know the idea please help me to implement this. Thanks.

    S 1 Reply Last reply
    0
    • K kandalu

      Hi, I am using .net 2.0. I want to search & highlight the text in datagrid like Edit->FindNext option present in NotePad, Word etc. I saw many examples to highlight the searched text within the datagrid at once. But I want to search the text one by one. If anyone know the idea please help me to implement this. Thanks.

      S Offline
      S Offline
      sharath07
      wrote on last edited by
      #2

      hope this could help http://www.nsftools.com/misc/SearchAndHighlight.htm[^] in the highlighting function, just break the code and return after the first highlight and hold the value in a local variable and see if you could give that value in the local variable as the starting index for the next search, hope this could work in the code u claimed u currently have, the one that does well for one time search. But defintly needs some tuning.

      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