Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. DataGrid Cell Color - C#

DataGrid Cell Color - C#

Scheduled Pinned Locked Moved C#
helpcsharptutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jo Develper
    wrote on last edited by
    #1

    Hi All, Does any one know how to retrive a datagrid cell color? I am using a datagrid which uses multiple colors? I required to print that datagrid. While printing I need to retain the cell colors. As of now I know only to get the header color of a datagrid. I will appreciate if someone can help me in solving the problem. Thanks, Jo

    S N 2 Replies Last reply
    0
    • J Jo Develper

      Hi All, Does any one know how to retrive a datagrid cell color? I am using a datagrid which uses multiple colors? I required to print that datagrid. While printing I need to retain the cell colors. As of now I know only to get the header color of a datagrid. I will appreciate if someone can help me in solving the problem. Thanks, Jo

      S Offline
      S Offline
      sreejith ss nair
      wrote on last edited by
      #2

      hi, Here in this article i am trying to assign and update colors of rows, cells etc. You can use this to know how to change the color of cells DataGridTableStyle ************************** S r e e j i t h N a i r **************************

      J 1 Reply Last reply
      0
      • S sreejith ss nair

        hi, Here in this article i am trying to assign and update colors of rows, cells etc. You can use this to know how to change the color of cells DataGridTableStyle ************************** S r e e j i t h N a i r **************************

        J Offline
        J Offline
        Jo Develper
        wrote on last edited by
        #3

        Hi Sreejith, That article is nice. I am interested in getting the color of a given datagrid cell. thanks, Jo

        1 Reply Last reply
        0
        • J Jo Develper

          Hi All, Does any one know how to retrive a datagrid cell color? I am using a datagrid which uses multiple colors? I required to print that datagrid. While printing I need to retain the cell colors. As of now I know only to get the header color of a datagrid. I will appreciate if someone can help me in solving the problem. Thanks, Jo

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          DataGrid.Items[0].Cells[0].BackColor;

          J 1 Reply Last reply
          0
          • N Not Active

            DataGrid.Items[0].Cells[0].BackColor;

            J Offline
            J Offline
            Jo Develper
            wrote on last edited by
            #5

            Hi Mark, I am using DataGrid in Windows forms. I couldn't find anything like DataGrid.Item[0] regards Jo

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups