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.

CurrentCell problem

Thread ID:

Created:

Updated:

Platform:

Replies:

58811 Mar 28,2007 04:53 PM Mar 29,2007 05:11 PM Windows Forms 5
loading
Tags: GridControl
Amiya
Asked On March 28, 2007 04:53 PM

Hi,

I'm stuck into an issue and I'm unable to figure out why its happening. :(

The issue is when I click on a cell on Grid Control, it is not getting reflected in grid's CurrentCell. Could you please tell me which property i need to set?

Thanks,
Amiya

haneefm [Syncfusion]
Replied On March 28, 2007 06:20 PM

Hi Amiya,

You can set the following property to achieve this behavior

this.grid.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.ClickOnCell;

This ClickOnCell setting means that clicking on a cell activates it.

Best regards,
Haneef

Amiya
Replied On March 29, 2007 03:11 PM

Still it doesn't work. I wonder why!

Amiya
Replied On March 29, 2007 03:17 PM

Haneef,

Is there any way to set the current cell programmatically?

Grid's CurrentCell always shows RowIndex and ColIndex -1. Is there any way of the setting the CurrentCell property value.

I'm implementing CutPaste feature in my grid, so this issue is very critical for me.

Please help.

Thanks,
Amiya

haneefm [Syncfusion]
Replied On March 29, 2007 03:33 PM

Hi Amiya,

Use the CurrentCell.MoveTo method to move current cell to reqired position.

this.grid.CurrentCell.MoveTo(rowIndex,ColIndex,GridSetCurrentCellOptions.SetFocus);

Best regards,
Haneef

Amiya
Replied On March 29, 2007 05:11 PM

Haneef,

Since the ColIndex and RowIndex values were -1, even MoveTo method didn't work. I used CurrentCell.Activate in cell click and CurrentCell.SetCurrentCellNoActivate in InsertRows method to move the current cell.

I still don't understand why I have to do all this. Also to my surprise this issue occurs only in one of my application!

For time being I'll settle down for it. Please let me know if you know the root cause of it.

Thanks,
Amiya

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.

;