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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Access to control

Thread ID:





15272 Jun 15,2004 05:22 PM UTC Jun 16,2004 02:38 PM UTC WinForms 2
Tags: GridControl
Matt Anderson
Asked On June 15, 2004 05:22 PM UTC

Is it possible to access the underlying control for a particular cell after the cell has been rendered? For example, if I am using a CellType of "TextBox", is there a way to get a reference to the underlying RichTextBox control for a particular cell? Also, if there is a way, will this also work for a cell in a virtual grid? Thanks for your help. Matt

Administrator [Syncfusion]
Replied On June 15, 2004 06:38 PM UTC

It really depends upon the cell type whether you can get the embeeded control or not. But for CellType == "TextBox", you can use this code to get it. GridTextBoxControl tb = this.gridDataBoundGrid1.CurrentCell.Renderer.Control as GridTextBoxControl

Matt Anderson
Replied On June 16, 2004 02:38 PM UTC

Thanks Clay.


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

Live Chat Icon For mobile
Live Chat Icon