We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Gradient color

Thread ID:

Created:

Updated:

Platform:

Replies:

3256 Mar 11,2003 05:41 AM UTC Apr 17,2004 11:31 AM UTC WinForms 1
loading
Tags: FAQ
Administrator [Syncfusion]
Asked On March 11, 2003 05:41 AM UTC

How to set gradient color (slides from blue to white) to the datagrid's caption and column headers? Does anyone know how to make this?

Jayaprakasan Subramaniam
Replied On April 17, 2004 11:31 AM UTC

Override the paint method of DataGrid Code: Graphics dc=e.Graphics; if(e.ClipRectangle.Top <132 && e.ClipRectangle.Left <82) { Pen BluePen=new Pen(Color.Blue,1); Rectangle r=new Rectangle(0,0,this.Width,this.Height); Color Cl=Color.FromArgb(219,220,220); LinearGradientBrush Br=new LinearGradientBrush(r,Color.White,Cl,LinearGradientMode.Vertical); e.Graphics.FillRectangle(Br,r); } base.OnPaint(e); >How to set gradient color (slides from blue to white) to the datagrid''s caption and column headers? Does anyone know how to make this? > > >

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;