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
close icon

how to capture the event of cell control

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

2 Replies

AD Administrator Syncfusion Team June 14, 2005 08:05 AM UTC

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;


QL QingGuang Lu June 14, 2005 10:22 AM UTC

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; >

Loader.
Live Chat Icon For mobile
Up arrow icon