Results 1 to 7 of 7

Thread: how can i change row color in datagrid?

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    4

    how can i change row color in datagrid?

    hi
    i am using sqlserver and datagrid.
    i want to change to the rows color while aplication runnig
    and i specially want to change the color of row that in the index that i specified with writing code
    for example
    DataGrid1.CurrentRowIndex = 3
    i want to change this row.

    how can i do this

    thanks..

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

    Re: how can i change row color in datagrid?

    Quote Originally Posted by berzegerol
    hi
    i am using sqlserver and datagrid.
    i want to change to the rows color while aplication runnig
    and i specially want to change the color of row that in the index that i specified with writing code
    for example
    DataGrid1.CurrentRowIndex = 3
    i want to change this row.

    how can i do this

    thanks..
    Hi,

    Here's a link how to change a Datagrid row color;

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

    Wkr,

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    4

    Re: how can i change row color in datagrid?

    thanks you for helped me.
    i dont'n whant this.
    i want to change only one row color.not help me altenatifcolor and backcolor.
    that are all rows changing.

    DataGrid1.CurrentRowIndex = X
    i want to change only this row.

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

    Re: how can i change row color in datagrid?

    Quote Originally Posted by berzegerol
    thanks you for helped me.
    i dont'n whant this.
    i want to change only one row color.not help me altenatifcolor and backcolor.
    that are all rows changing.

    DataGrid1.CurrentRowIndex = X
    i want to change only this row.
    Hi,

    Here's another link how to coloring one row in your datagrid;

    http://www.syncfusion.com/faq/window...earch/745.aspx

    Hope it helps,

    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

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    4

    Re: how can i change row color in datagrid?

    thank you!

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

    Re: how can i change row color in datagrid?

    Quote Originally Posted by berzegerol
    thank you!
    Hi,

    If it helped you mark your thread as resolved.

    Wkr,

    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

  7. #7

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    4

    Re: how can i change row color in datagrid?

    Exactly, i dont want this but thank you.

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