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.

cell textbox activation

Thread ID:

Created:

Updated:

Platform:

Replies:

95967 Aug 12,2010 09:02 AM Aug 23,2010 04:22 AM WPF 1
loading
Tags: GridControl
Joe Ward
Asked On August 12, 2010 09:02 AM

When you're in a cell, and you tab to another cell with existing text, then start typing, the existing text is replaced with whatever you type.

However, when you click on a cell, the cursor is inserted into the existing text where you clicked. For example, if the cell contains "Hello World", and you click on the cell just over between the "W" and "o", that's where your cursor shows up, and anything you type is inserted into that place in the string.

How can I set the cell such that it behaves as if you tabbed to it when you click on it, so that when the user starts typing, the existing text is wiped clean?

Muthulakshmi N [Syncfusion]
Replied On August 23, 2010 04:22 AM

Hi Joseph,

Thank you for your details.
we have modified the “GridCellTextBoxRenderer.cs” file based on your request
also prepared a workarround sample which illustrates your request. Please download the sample from the below location.

Link:
http://www.syncfusion.com/uploads/redirect.aspx?file=WpfApplication1_e0c0d14a.zip&team=development

C# code for add new cell type to GridControl:

this.grid.Model.CellModels.Remove("TextBox");
this.grid.Model.CellModels.Add("TextBox", new CustomGridCellTextBoxModel());

Let us know if you need any details.

Thanks,
Muthulakshmi

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.

;