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.
Up arrow icon