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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Edit bar

Thread ID:

Created:

Updated:

Platform:

Replies:

71850 Feb 15,2008 03:49 PM UTC Mar 1,2008 03:29 AM UTC WinForms 1
loading
Tags: GridControl
Brian Richards
Asked On February 15, 2008 03:49 PM UTC

I'm trying to write a control similar to the excel forumla bar. I want text editing in the text box to be reflected in the current cell in a grid. I'm using a virtual grid.

I'd like to do something like

textBox_textchanged(...)
{
if(currentCell.IsEditing==false)
{
currentCell.BeginEdit();
}

//Set current cell edit text
}

textBox_Leave(...)//Or Enter Key
{
if(currentCell.IsEditing)
{
currentCell.EndEdit()
}
}

My logic may not be complete I still have to handle the esc key etc. But I can't figure out how to set the editing text without actually altering the GridStyleInfo for the current cell. Any help would be appreciated.

Thanks


Jay
Replied On March 1, 2008 03:29 AM UTC

You can use the GridAwareTextBox control to do this. Please take a look at this sample:

\Documents\Syncfusion\EssentialStudio\6.1.0.34\Windows\Grid.Windows\Samples\2.0\FormulaSupport\FormulaGrid\


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.

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

;