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.

Text selection in a cell of type TextBox

Thread ID:

Created:

Updated:

Platform:

Replies:

72994 Apr 15,2008 07:48 AM Apr 22,2008 05:58 AM Windows Forms 2
loading
Tags: Grouping
Shane
Asked On April 15, 2008 07:48 AM

I'm editing values via a grid grouping control. When the user clicks on a cell which has a CellType of Textbox the text in that cell should be selected by default.

Also if the text changes in any way I need to enable some buttons before the user clicks out of the cell, what would the appropriate event to use?

Thanks
Shane



Johnson [Syncfusion]
Replied On April 18, 2008 08:31 PM

Hi Shane,

Thank you for using Syncfusion products.

Issue 1:(Select the Text when enter into Editmode)
<<<<<<<<<<<
Please use below code snippet for fix this issue.

this.gridGroupingControl1.TableControl.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;

Issue2:(Which event is fired when Text change in the cell )
<<<<<<<<<<<
//Event declaration
this.gridGroupingControl1.TableControlCurrentCellValidateString += new GridTableControlCurrentCellValidateStringEventHandler(gridGroupingControl1_TableControlCurrentCellValidateString);

//Event handler
void gridGroupingControl1_TableControlCurrentCellValidateString(object sender, GridTableControlCurrentCellValidateStringEventArgs e)
{
string ss = e.Inner.Text;
}

Please let me know if you need further assistance.

Best regards,
Johnson




Shane
Replied On April 22, 2008 05:58 AM

That worked fine.

Thanks


>Hi Shane,

Thank you for using Syncfusion products.

Issue 1:(Select the Text when enter into Editmode)
<<<<<<<<<<<
Please use below code snippet for fix this issue.

this.gridGroupingControl1.TableControl.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;

Issue2:(Which event is fired when Text change in the cell )
<<<<<<<<<<<
//Event declaration
this.gridGroupingControl1.TableControlCurrentCellValidateString += new GridTableControlCurrentCellValidateStringEventHandler(gridGroupingControl1_TableControlCurrentCellValidateString);

//Event handler
void gridGroupingControl1_TableControlCurrentCellValidateString(object sender, GridTableControlCurrentCellValidateStringEventArgs e)
{
string ss = e.Inner.Text;
}

Please let me know if you need further assistance.

Best regards,
Johnson






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.

;