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.
Unfortunately, activation email could not send to your email. Please try again.

Drop shadow on disabled (themed) PushButtons within Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

34409 Sep 8,2005 01:55 PM Oct 31,2006 11:27 PM Windows Forms 4
loading
Tags: GridControl
Ross Micheals
Asked On September 8, 2005 01:55 PM

Is there a way to disable (or recolor) the ''drop shadow'' on PushButtons within a Grid? My disabled (themed) buttons are very difficult to read when disabled because of this dropshadow effect. Thanks.

Ross Micheals
Replied On September 8, 2005 01:58 PM

>Is there a way to disable (or recolor) the ''drop shadow'' on PushButtons within a Grid? My disabled (themed) buttons are very difficult to read when disabled because of this dropshadow effect. > >Thanks. Never mind; explicitly changing .FontColor works.

Ross Micheals
Replied On September 8, 2005 02:01 PM

> > >>Is there a way to disable (or recolor) the ''drop shadow'' on PushButtons within a Grid? My disabled (themed) buttons are very difficult to read when disabled because of this dropshadow effect. >> >>Thanks. > >Never mind; explicitly changing .FontColor works. Thank me for using Syncfusion products.

Gururaj M Upadhye
Replied On October 31, 2006 01:42 PM



>
>
>>
>>
>>>Is there a way to disable (or recolor) the 'drop shadow' on PushButtons within a Grid? My disabled (themed) buttons are very difficult to read when disabled because of this dropshadow effect.
>>>
>>>Thanks.
>>
>>Never mind; explicitly changing .FontColor works.
>
>Thank me for using Syncfusion products.

On what object FontColor property is available? I did not find it on GridStyleInfo and Font. Thanks for your help.
-Guru.

Administrator [Syncfusion]
Replied On October 31, 2006 11:27 PM

Hi Guru,

Try setting the TextColor property of the GridStyleInfo object to SystemColors.Control in a disabled push button cell. Here is a code snippet

this.grid[1,3].Description = "Welcome"; //For PushButton text.
this.grid[1,3].CellType = "PushButton";

this.grid[1,3].Enabled = false;
this.grid[1,3].Clickable = false;

this.grid[1,3].TextColor = SystemColors.Control ; //Change the Disabled Font look

Best Regards,
Haneef

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.

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.

;