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. VB.Net 2003 - ItemDataBound

VB.Net 2003 - ItemDataBound

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

    I am new to "The Code Project". :doh: I was attracted to this site due to an article; "Advanced DataGrid Formating with ItemDataBound". The article identified how to format ADO.Net Datagrid rows conditionally. I need to do the same from a VB.Net Datagrid. My Application provides the user a datagrid that displays equipment calibration related data. I.E. "Equip. Serial #", "Due dates" ETC... I want to conditionally change the color of rows (records) who's "Due date" columns are greater than the current date; DueDate > Today() Thus, visually identifing records which need to be prioritized. Can anyone direct me to an article, or perhaps point me in the right direction? Regards: DDscales

    DDscales

    S 1 Reply Last reply
    0
    • D DDscales

      I am new to "The Code Project". :doh: I was attracted to this site due to an article; "Advanced DataGrid Formating with ItemDataBound". The article identified how to format ADO.Net Datagrid rows conditionally. I need to do the same from a VB.Net Datagrid. My Application provides the user a datagrid that displays equipment calibration related data. I.E. "Equip. Serial #", "Due dates" ETC... I want to conditionally change the color of rows (records) who's "Due date" columns are greater than the current date; DueDate > Today() Thus, visually identifing records which need to be prioritized. Can anyone direct me to an article, or perhaps point me in the right direction? Regards: DDscales

      DDscales

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

      Hi DDscales. Try Using [c#] this.dataGridView1.Rows[0].DefaultCellStyle Or if you are using the a DataSet use DataBindings to set the properties with the correct datamember.

      SINCERELY. ANTHONY ACUÑA PREFERED PHRASE: SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?

      D 1 Reply Last reply
      0
      • S shopi30

        Hi DDscales. Try Using [c#] this.dataGridView1.Rows[0].DefaultCellStyle Or if you are using the a DataSet use DataBindings to set the properties with the correct datamember.

        SINCERELY. ANTHONY ACUÑA PREFERED PHRASE: SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?

        D Offline
        D Offline
        DDscales
        wrote on last edited by
        #3

        Perhaps I am just to green. I assume "this." refers to my DataGrid "DataGrid1" ? Also, I notice in your reply [c#], I am running VB 2003. Or does that matter? Anyway...I think my problem is I do not know how to set the dataGridView properties. Do I have to create a class Library? I realize this could get rather complicated. Could you refer me to an article or virtual lab that might help me to get the answers? Regards:

        DDscales

        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