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.

Edit bar

Thread ID:

Created:

Updated:

Platform:

Replies:

71850 Feb 15,2008 10:49 AM Feb 29,2008 10:29 PM Windows Forms 1
loading
Tags: GridControl
Brian Richards
Asked On February 15, 2008 10:49 AM

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 February 29, 2008 10:29 PM

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.

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.

;