p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   .NET Framework 2.0 (http://p2p.wrox.com/net-framework-2-0-141/)
-   -   appearance in grid (http://p2p.wrox.com/net-framework-2-0/98998-appearance-grid.html)

maplecutie May 29th, 2016 01:24 PM

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

sobort84 May 29th, 2016 01:36 PM

re: appearance in grid
 
Quote:

Originally Posted by maplecutie (Post 307565)
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 -4. The time now is 12:39 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.