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

how to capture the event of cell control

Thread ID:

Created:

Updated:

Platform:

Replies:

30203 Jun 13,2005 10:45 PM Jun 14,2005 06:22 AM Windows Forms 2
loading
Tags: GridControl
QingGuang Lu
Asked On June 13, 2005 10:45 PM

Hi, I want to add event handler to the cell control(textbox), when user key press or mouse down. how can i get the cell control object handle. Thanks LuQingGuang

Administrator [Syncfusion]
Replied On June 14, 2005 04:05 AM

There may be a grid event like CurrentCellKeyDown that you could use. If you want to get at the TextBox associated with the "TextBox" CellType, then you can use code like: GridTextBoxCellRenderer cr = this.grid.CellRenderers["TextBox"] as GridTextBoxCellRenderer; GridTextBoxControl tb = cr.TextBox as GridTextBoxControl;

QingGuang Lu
Replied On June 14, 2005 06:22 AM

Hi, Thanks for your answer, It''s Right. LuQingGuang >There may be a grid event like CurrentCellKeyDown that you could use. > >If you want to get at the TextBox associated with the "TextBox" CellType, then you can use code like: > > >GridTextBoxCellRenderer cr = this.grid.CellRenderers["TextBox"] as GridTextBoxCellRenderer; >GridTextBoxControl tb = cr.TextBox as GridTextBoxControl; >

CONFIRMATION

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.

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.

;