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.

to maintain cursor in cell

Thread ID:

Created:

Updated:

Platform:

Replies:

66487 Jul 30,2007 08:23 AM Jul 31,2007 01:27 PM Windows Forms 3
loading
Tags: GridControl
swaminath dhavane
Asked On July 30, 2007 08:23 AM

hi,
i am using grid grouping control and opening lookup when i try to type in cell.when i select a value and insert in cell.Black square bracket remains at boundary of that cell.But tablecontrol_currentcellkeyPressed event is not fired when i try to type in cell .So i want to know , which function should i use so that cursor should remain in cell.

haneefm [Syncfusion]
Replied On July 30, 2007 11:26 AM

Hi Swaminath,

This is a default behavior when the dropdownstyle is set to Exclusive. You can try changing the dropdownstyle for the comboboxcells in the grid to AutoComplete or Editable. This will fetch you the desired behavior. Below is a code snippet

this.gridGroupingControl1.TableDescriptor.Columns[0].Appearance.AnyRecordFieldCell.DropDownStyle = GridDropDownStyle.Editable;

Best regards,
Haneef

swaminath dhavane
Replied On July 31, 2007 02:54 AM

hi
there is no combo boxes in my grid.just a cell and i want to retain currsor in cell when one assigns or updates cell value.

>Hi Swaminath,

This is a default behavior when the dropdownstyle is set to Exclusive. You can try changing the dropdownstyle for the comboboxcells in the grid to AutoComplete or Editable. This will fetch you the desired behavior. Below is a code snippet

this.gridGroupingControl1.TableDescriptor.Columns[0].Appearance.AnyRecordFieldCell.DropDownStyle = GridDropDownStyle.Editable;

Best regards,
Haneef

haneefm [Syncfusion]
Replied On July 31, 2007 01:27 PM

Hi Swaminath,

You can try calling the BeginEdit method to enter the edit mode in a grid after updating the currrentcell. Please try these code and let me know if this helps.

this.grid.Focus();
this.grid.CurrentCell.MoveTo(row,col);
this.grid.CurrentCell.BeginEdit();

Best regards,
Haneef

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.

;