Results 1 to 3 of 3

Thread: odd rows color change

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    9

    odd rows color change

    in data grid, how can i change the row colors based on there ordrer, ex. odd records will have grey backgroupd, even records will be white

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: odd rows color change

    Quote Originally Posted by capitalx
    in data grid, how can i change the row colors based on there ordrer, ex. odd records will have grey backgroupd, even records will be white
    Have you tried the AlternatingBackColor property of the datagrid.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: odd rows color change

    Quote Originally Posted by capitalx
    in data grid, how can i change the row colors based on there ordrer, ex. odd records will have grey backgroupd, even records will be white
    Hi,

    I found a link with an example about the background color of even-numbered rows of the grid.

    You'll find the explaination and more in this link:


    http://msdn.microsoft.com/library/de...ColorTopic.asp

    Hope its helpfull.

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

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