View Single Post
  #2 (permalink)  
Old May 29th, 2016, 01:36 PM
sobort84 sobort84 is offline
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2016
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default re: appearance in grid

Quote:
Originally Posted by maplecutie View Post
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);
Reply With Quote