Results 1 to 6 of 6

Thread: Datagrid alternate row different color

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    Datagrid alternate row different color

    I am using datagrid to show the contents of table. I am using sqldataadapter control.
    How can I set alternate row to different color.

    thanks
    nath

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    HI,

    The following thread will show you how to do this in a ListView. You should be able to adapt it.

    http://www.vbforums.com/showthread....threadid=296660
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    says "File Not Found"

    could you pls post the correct hyperlink.

    thanks
    nath

  4. #4
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    HI,

    I don't know what happened there. It should have gone straight to an answer I posted. I will try to find it.

    Meanwhile have a look at someone else's approach.

    http://www.vbforums.com/showthread.p...=listview+rows
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  5. #5
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    Still can't find mine but here is another

    http://www.vbforums.com/showthread.p...listbox+colors
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  6. #6
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    the datagrid has a property you can set to make every other color different. just look for it in the properties window.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width