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 edit

Thread ID:

Created:

Updated:

Platform:

Replies:

19079 Sep 17,2004 04:12 AM Sep 17,2004 08:07 AM Windows Forms 6
loading
Tags: GridControl
Anil Kumar M
Asked On September 17, 2004 04:12 AM

Hi, I am using a DBDG grid control I am using Grid_CellDoubleClick event which i am using to show another windows form, but when close the windows form and come back, the current cell will be in editing mode, if i double click on the cell, CellDoubleClick event is not occuring. i gave grid.currentcell.beginedit() in grid_CurrentCellStartEditing and grid.currentcell.endedit() in grid_CurrentCellEditingComplete its working fine but there is issues of refresh of windows form happening very lately.. grid_CurrentCellStartEditing event is going for many loops when i added this stattement grid.currentcell.beginedit(). is there any better solution thanks , seash

Administrator [Syncfusion]
Replied On September 17, 2004 04:59 AM

I am not sure what you want. If you do not want the currentcell to be editing when the new form closes, then in your Grid_CellDoubleClick handler before you open the new form, try calling grid.CurrentCell.EndEdit to to see if that will take care of this problem. You should not call grid.CurrentCell.BeginEdit from within a grid.CurrentCellStartEditing event handler as calling BeginEdit raises this event. If you will give more details about what behavior you want to see, we may be able to suggest something.

Administrator [Syncfusion]
Replied On September 17, 2004 05:46 AM

Hi Clay how to end edit mode of a current cell after double clicking on that cell. I am having grid_CellDoubleClick event on the grid. so when i double click on any cell, i will be showing a windows form. when i close the window form. the current cell(which has been double clicked) still will be in edit mode. if i double click again on the same cell(which is in edit mode, cursor will be appearing in the cell) grid_CellDoubleClick event will not be occuring or happening, which it is supposed to happen. before calling the windows form in grid_CellDoubleClick event i added the code grid.CurrentCell.EndEdit but the current cell is in still edit mode seash. >I am not sure what you want. > >If you do not want the currentcell to be editing when the new form closes, then in your Grid_CellDoubleClick handler before you open the new form, try calling grid.CurrentCell.EndEdit to to see if that will take care of this problem. > >You should not call grid.CurrentCell.BeginEdit from within a grid.CurrentCellStartEditing event handler as calling BeginEdit raises this event. > >If you will give more details about what behavior you want to see, we may be able to suggest something.

Administrator [Syncfusion]
Replied On September 17, 2004 06:18 AM

>>how to end edit mode of a current cell after double clicking on that cell. In your Grid_CellDoubleClick handler before you open the new form, try calling grid.CurrentCell.EndEdit.

Administrator [Syncfusion]
Replied On September 17, 2004 06:33 AM

I tried this statement but its not working seash

Administrator [Syncfusion]
Replied On September 17, 2004 06:52 AM

It seems to work for me as long as ActivateCurrentCellBehavior is not SetCurrent. Here is a little sample. WindowsApplication1_5593.zip

Administrator [Syncfusion]
Replied On September 17, 2004 08:07 AM

Thanks clay seash

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.

;