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 get text from current cell in CurrentCellKeyPress Event method

Thread ID:

Created:

Updated:

Platform:

Replies:

84736 Jul 2,2009 05:24 AM Jul 7,2009 12:54 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Deepasri
Asked On July 2, 2009 05:24 AM

Hi,

I have used syncfusion grid control for our project.For grid control, I have handled a key press event for the current cell.

In the CurrentCellKeyPress event, I want to get the value I have enetered in the current cell.

I have tried,
gridControl.CurrentCell.Renderer.ControlValue
gridControl[1,gridControl.CurrentCell.ColIndex].Text
but it returned empty string even if I have entered some value.

Please tell me any alterative solution for the above issue.

Thanks,
Deepa

Jisha Joy [Syncfusion]
Replied On July 7, 2009 12:54 AM

Hi Deepa,

You could get the key value entered in the cell by using e.KeyChar property. See the code:

void gridControl1_CurrentCellKeyPress(object sender, KeyPressEventArgs e)
{
Console.WriteLine(e.KeyChar.ToString());
}

Let me know if this does not serve your needs.

Regards,
Jisha

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.

;