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. Hi Guffa, can you please look in to this?

Hi Guffa, can you please look in to this?

Scheduled Pinned Locked Moved ASP.NET
helpcomtoolstutorialquestion
5 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
    Dhruvil
    wrote on last edited by
    #1

    http://www.codeproject.com/script/comments/forums.asp?forumid=12076&fr=151&select=1553164&msg=1553164 How to highlight today's date row in datagrid when page loaded? I am really stuck in this issue. Thanks, NIKI

    G S 2 Replies Last reply
    0
    • D Dhruvil

      http://www.codeproject.com/script/comments/forums.asp?forumid=12076&fr=151&select=1553164&msg=1553164 How to highlight today's date row in datagrid when page loaded? I am really stuck in this issue. Thanks, NIKI

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Done. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • D Dhruvil

        http://www.codeproject.com/script/comments/forums.asp?forumid=12076&fr=151&select=1553164&msg=1553164 How to highlight today's date row in datagrid when page loaded? I am really stuck in this issue. Thanks, NIKI

        S Offline
        S Offline
        Sushant Duggal
        wrote on last edited by
        #3

        HI Niki, what I wrote in the last thread was to change backcolor of one row only. I got a new and easy Idea. DO one thing, on the page load event, get the max date from the database, then in ItemDataBound compare that date with all the rows, which ever matches, change the backcolor of that row. I think this is really easy Thanks Sushant Duggal. Sushant Duggal.

        D 1 Reply Last reply
        0
        • S Sushant Duggal

          HI Niki, what I wrote in the last thread was to change backcolor of one row only. I got a new and easy Idea. DO one thing, on the page load event, get the max date from the database, then in ItemDataBound compare that date with all the rows, which ever matches, change the backcolor of that row. I think this is really easy Thanks Sushant Duggal. Sushant Duggal.

          D Offline
          D Offline
          Dhruvil
          wrote on last edited by
          #4

          Hi Sushant, Thanks for the help. Well, my data is coming from the xml file th' web service. I am retreiving it in the dataset. So, I don't think, I can get the Max value for date from that. second, your idea is only good if there is no today's or future dates.But you never know about that. And one more thing, Is there any mechanism such that, i can pass the value from the datagrid to clientside javascript function which is displaying data without onclick, onmouseover event? I mean to say, when page load, The first row of the datagrid should be selected and the value of that row should pass to the javascript function which is displaying those data on page load. I tried this: e.attributes.add("onload","javascript:showdetails("'+parameter+'");"); but thats not working. Can you have idea about that? Thanks, NIKI

          S 1 Reply Last reply
          0
          • D Dhruvil

            Hi Sushant, Thanks for the help. Well, my data is coming from the xml file th' web service. I am retreiving it in the dataset. So, I don't think, I can get the Max value for date from that. second, your idea is only good if there is no today's or future dates.But you never know about that. And one more thing, Is there any mechanism such that, i can pass the value from the datagrid to clientside javascript function which is displaying data without onclick, onmouseover event? I mean to say, when page load, The first row of the datagrid should be selected and the value of that row should pass to the javascript function which is displaying those data on page load. I tried this: e.attributes.add("onload","javascript:showdetails("'+parameter+'");"); but thats not working. Can you have idea about that? Thanks, NIKI

            S Offline
            S Offline
            Sushant Duggal
            wrote on last edited by
            #5

            Hi Niki, You can still get the max date from the dataset generated from XML file. And regarding today or future dates, you can put check for them too. And regarding your second query, i am not sure when you want the values of the grid??? I mean where you want to use them? I haven't ever done this, I think you can take hidden variables and set them at the time of ItemDataBound of the grid, and then get the vaules of the hidden variables with getElementById. Give it a try Thanks, Sushant Duggal.

            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