PaletteInheritance property on NDataGridView


Author
Message
Brad Swearingen
Brad Swearingen
Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)
Group: Forum Members
Posts: 53, Visits: 3

1) I dropped a NDataGridView on my NForm.  When I set the PaletteInheritance value to None it still picks up the current scheme.  I set the scheme, for instance, like this:

NUIManager.Palette.Scheme = ColorScheme.Rosemary;

If I set the PaletteInheritance to None on an NButton on the same form it doesn't use the scheme.  Is there a way to make this work on an NDataGridView?

Specifically, I was investigating why the NDataGridViews column header text forecolor was not the same color as my NButton forecolor text is.  How can I make these be the same?

2) I noticed when using the ColorSheme.Blue and ColorScheme.Longhorn that a disabled NTextBox can not be read at all.  None of the other schemes and skins have this issue.  Seems the foreground color and the background color are the same with those schemes.  Is there a way to use those schemes and make the NTextBox readable?

I'm using the 11.12.14.12 build.


Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hello Brad,

If you set PaletteInheritance of NDataGridView to None it should prevent NUIManager to apply the colors of its Palette property on it. It should be displayed with its default colors.

To enable the fore color of the header of NDataGridView control to be determined by the Palette applied on it, you should set EnableHeadersVisualStyles to false.

 

You are right about your second notification.

We should change the color of the text when NTextBox control is disabled for these palettes.



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search