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.

Problems changing text color

Thread ID:

Created:

Updated:

Platform:

Replies:

17298 Aug 5,2004 06:58 AM Aug 5,2004 07:11 AM Windows Forms 1
loading
Tags: GridControl
jose acidrain
Asked On August 5, 2004 06:58 AM

I´m using GridDataBoundGrid and i need to change the color of the text of a cell depending of the result of a condition evaluated on the event CurrentCellDeactivated. I have modified one of the samples content in the Essential Suite. In that example, (that use a ControlGrid instead of a GridDataBoundGrid) inside the method triggered by the event CurrentCellDeactivated, i´m able to modify the color of the text of the cell just by using this sentence: mySyncfussiongrid[currentCell.RowIndex,currentCell.ColIndex].TextColor = Color.Red; However, when i use the same sentence in my own code using a GridDataBoundGrid, the color of the text don´t change (but anyway i can modify the text using the Text property). Is there any problem chaging the color of the GridDataBoundGrid? I mean, Is there any other way to modify the color of the text? Thanks.

Administrator [Syncfusion]
Replied On August 5, 2004 07:11 AM

You cannot use an indexer on a GridDataBoundGrid to change any style property other than the cell value (which is the only thing your datasource holds). To change the color of a single cell in a GridDataBoundGrid, you need to use the PrepareViewStyleInfo event ot do it dynamcially. Here is a KB link. http://www.syncfusion.com/Support/article.aspx?id=560

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.

;