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.

Text Color on GGC Selected Row

Thread ID:

Created:

Updated:

Platform:

Replies:

40832 Feb 14,2006 11:33 AM Feb 14,2006 02:57 PM Windows Forms 1
loading
Tags: GridControl
Babak Keradman
Asked On February 14, 2006 11:33 AM

I have two columns that are of cell type "pushbutton". When a row is selected, the font color of all the text in that row changes to white. I know how to change selected text color for the entire row, but how do I keep the text color on those two cells black, and let the others change to the standard selected text color?

Babak Keradman
Replied On February 14, 2006 02:57 PM

nevermind I figured it out. I handled the DrawCell event. private void grid_TableControlDrawCell(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlDrawCellEventArgs e) { if(e.Inner.Style.CellType.Equals("PushButton")) { e.Inner.Style.ResetTextColor(); } }

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.

;