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

Change color of TextBox of Cell while in Edit.

Thread ID:





104762 Aug 15,2012 07:24 PM UTC Aug 27,2012 08:18 AM UTC WPF 1
Tags: GridControl
Rich Fabros
Asked On August 15, 2012 07:24 PM UTC

Is there a way to change the color of the TextBox of the CurrentCell of the GridDataControl while the user is editing?

The code below doesn't seem to work. I call this during CurrentCellChanged event of the grid.
Control cellControl = Grid.Model.Grid.CurrentCell.Renderer.CurrentCellUIElement as Control;
cellControl.Background = Brushes.Red;

I'm using syncfusion 9.4


Santhosh A [Syncfusion]
Replied On August 27, 2012 08:18 AM UTC

Hi Rich,


Thanks for using Syncfusion products.


We have analyzed your query, and you can achieve your requirement by Creating the CustomCellRenderer, For your reference we have Created a CustomCellRenderer and Consolidated it into a Sample.You can find the Sample under the following location.


Sample: TextBoxBG.zip


Please let us know if you have any concerns.





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

This page will automatically be redirected to the 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