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. highlighting after datagrid sort in vb.net

highlighting after datagrid sort in vb.net

Scheduled Pinned Locked Moved Visual Basic
helpquestioncsharpalgorithms
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.
  • S Offline
    S Offline
    sierra_ven
    wrote on last edited by
    #1

    Hi all, I just have a question regarding the datagrid's column header sort function. See, i wish to loop through the sorted table and then highlighted the required rows. So i inserted my highlighting code in the datagrid mouseup function. However, this function is done BEFORE the datagrid sorting is done, so in the end, the wrong rows end up being highlighted. Is there anyway for me to add my highlighting code AFTER the sorting of the datagrid is done? This problem has me stumped for awhile, hope help arrives soon! Thanx, Sierra :rose:

    C 1 Reply Last reply
    0
    • S sierra_ven

      Hi all, I just have a question regarding the datagrid's column header sort function. See, i wish to loop through the sorted table and then highlighted the required rows. So i inserted my highlighting code in the datagrid mouseup function. However, this function is done BEFORE the datagrid sorting is done, so in the end, the wrong rows end up being highlighted. Is there anyway for me to add my highlighting code AFTER the sorting of the datagrid is done? This problem has me stumped for awhile, hope help arrives soon! Thanx, Sierra :rose:

      C Offline
      C Offline
      cwayman
      wrote on last edited by
      #2

      Hey you could use the

      Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs)

      End Sub

      event as it is called for ever record in the datagrid during the databind. Hope this helps let me know how u get on Chris

      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