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. Image for the cookie policy date

Change color of TextBox of Cell while in Edit.

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

Thanks,
Rich

1 Reply

SA Santhosh A Syncfusion Team 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.

 

Regards,

Santhosh.A


Loader.
Live Chat Icon For mobile
Up arrow icon