Results 1 to 2 of 2

Thread: [RESOLVED] back color of selected column

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    266

    Resolved [RESOLVED] back color of selected column

    I m using True DB Grid and c# I need to change the back color of entire column when i click on its header ... what i do
    because when i use the following its not working


    Code:
    private void tdbExport_FetchRowStyle(object sender, C1.Win.C1TrueDBGrid.FetchRowStyleEventArgs e)
            {
    if (tdbExport.Col == tdbExport.DestinationCol)
              {
                 if (e.CellStyle.BackColor == Color.BlueViolet)
                     e.CellStyle.BackColor = Color.White;
                 else
                     e.CellStyle.BackColor = Color.BlueViolet;
              }
    }
    It s gonna change the color of entire row not a single coloumn

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    266

    Re: back color of selected column

    problem has been resolved

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