LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   appearance in grid (https://www.linuxquestions.org/questions/programming-9/appearance-in-grid-4175581038/)

maplecurie 05-30-2016 11:43 AM

appearance in grid
 
hi!
how do you set painting in cells, grouping rows and headers. I use Dapfor .Net Grid

ambrose4 05-30-2016 12:41 PM

re: appearance in grid
 
Quote:

Originally Posted by maplecurie (Post 5553075)
hi!
how do you set painting in cells, grouping rows and headers. I use Dapfor .Net Grid

hi!!!!!! A nice question. Grid appearance is convenient in Dapfor .Net Grid
The code link below should help on that.

//Even colors
grid.Appearance.EvenRows.ForeColor = Color.Gold;
grid.Appearance.EvenRows.BackColor = Color.Gray;

//Odd colors
grid.Appearance.OddRows.ForeColor = Color.DarkOrange;
grid.Appearance.OddRows.BackColor = ControlPaint.Light(Color.Gainsboro);
grid.Appearance.OddRows.GradientEnabled = true;
grid.Appearance.OddRows.GradientDirection = GradientDirection.Vertical;
grid.Appearance.OddRows.GradientEndBackColor = ControlPaint.Dark(Color.Gainsboro);


All times are GMT -5. The time now is 03:43 AM.