DataGrid Row colour in VB.NET

vb.net India
  • 13 years ago

    Hi ,

    I am developing VB.NET 2003 Windows application.

    i have One DataGrid

    i am filling the dataset and and assign DataGrid.DataSource=myDataSet

    now my data grid looks like this

    #        OrderID        OrderDate
    1         0937            05/21/2007
    2          6667           05/22/2007
    3         8896            06/23/2007
    4         5467            06/23/2007
    5         4790            07/30/2007

    i want put colours for my rows
    condition is
                if OrderDate is today date then Rows colour sould be green
                if OrderDate is less than today date rows colours should be blue
                if OrderDate is grater than today date then rows colour should be red like this


    i am filling the DataGrid data using Dataset

    how i would do this...

  • 13 years ago

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Never trust a programmer in a suit.” - Anonymous