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
HA
haneefm
Syncfusion Team
April 16, 2007 03:27 PM UTC
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
DU
Dinesh Upreti
April 16, 2007 09:53 PM UTC
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
HA
haneefm
Syncfusion Team
April 16, 2007 10:32 PM UTC
Hi Dinesh,
Please try this code.
this.gridGroupingControl1.TableControl.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell;
Best regards,
Haneef