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.

Excel like behaviour expected of GCC cells

Thread ID:

Created:

Updated:

Platform:

Replies:

59494 Apr 14,2007 01:46 PM Apr 16,2007 06:32 PM Windows Forms 3
loading
Tags: GridControl
dinesh upreti
Asked On April 14, 2007 01:46 PM

Hi,
How do i get my Grid grouping Control behave like excel.
When i click on a cell, the cell shows me the cursor, while in excel, the cell only gets selected and only when i double click, the cell shows up the cursor.
I want the same excel like behaviour to be exhibited by GGC cell. i.e only when i double click, the blink cursor should show up and when i single click on a cell, the cell should just be selected.

Thanks

Dinesh


haneefm [Syncfusion]
Replied On April 16, 2007 11:27 AM

Hi Dinesh,

You can set the following property to achieve this behavior

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

This SelectAll setting means that clicking on a cell does select all text in a cell.

Best regards,
Haneef

Dinesh Upreti
Replied On April 16, 2007 05:53 PM

hi,
The property as you mentioned, just selects the texts in the cell.
But it is not the default behaviour in excel.
The behavoiur that is expected is that when a user just selects a cell, that cell should be selected (user may just want to press delete button and clear the contents out etc.). The text in the cell should come in edit mode only when user double clicks, the way it happens in excel.

Let me know whether its possible or not and if not, what workaround is possible to simulate the requirement.

Thanks



>Hi Dinesh,

You can set the following property to achieve this behavior

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

This SelectAll setting means that clicking on a cell does select all text in a cell.

Best regards,
Haneef

haneefm [Syncfusion]
Replied On April 16, 2007 06:32 PM

Hi Dinesh,

Please try this code.

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

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.

;