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

Difference of Control.Text and ControlText

Hello there,

While implementing a GridDataBoundGrid on our form, I realise that the Renderer property of the CurrentCell have two similar properties, which are Control.Text and ControlText. Is there a difference between them?


Thanks,
David

1 Reply

RC Rajadurai C Syncfusion Team July 10, 2009 03:22 PM UTC

Hi David,

Thanks for your interest in Syncfusion Products.

CurrentCell.Renderer.ControlText refers to the GridCellRendererBase class of Syncfusion namespace and CurrentCell.Renderer.Control.Text refers to TextBox' text.

To handle different functionalities with the textbox' text, it has been handled in GridCellRendererBase in such a way that, when a text is assigned in the textbox(grid cell), the renderer.control.Text property receives the text and raises TextBoxChanged event in which the ControlText property is reset with the updated value.

Hence, on changing the value in cc.Renderer.Control.Text, immediately changes value in cc.Renderer.ControlText.

Regards,
Rajadurai

Loader.
Live Chat Icon For mobile
Up arrow icon