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.

Current cell not selecting all the text

Thread ID:

Created:

Updated:

Platform:

Replies:

10137 Jan 22,2004 03:30 PM Jan 22,2004 04:41 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 22, 2004 03:30 PM

Hi, I am using DataBoundGrid 1.6.1.8. I have set the ActivateCurrentCellBehavior as SelectAll. I wrote a custom cell ("LookupCell") derived from GridTextBoxCellModel/Renderer. It has a button at the end of the textfield. When I click inside this lookup cell it was not highliting the text. So, in renderer.OnClick(), I am forcing to TextBox.Focus() and TextBox.SelectAll(). In renderer.OnClick() override, TextBox is not getting focus sometimes (???). When I move from one row to another row, my non-lookup cell texts are not getting selected with single click. I have to click again to make the other cells active. If I don''t do that, what ever I type is going to the previous (current) cell and not present current cell. I tried to reproduce this in a simple example. It seems to be working ok in that. How can I track this bug and what do I need to look? thanks, - Reddy

Administrator [Syncfusion]
Replied On January 22, 2004 04:41 PM

Some things to look at. The standard TextBox cell does its selectall code for the ActivateCurrentCellBehavior = SelectAll in TextBoxGotFocus. This method is a handler for TextBoxControl.GotFocus event. It is hooked in the renderer''s constructor. Does your constructor call the base constructor to hook this event? Have you overriden the TextBoxGotFocus method. In your OnClick override, do you call the baseclass?

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.

;