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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SaveCellInfo/QueryCellInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

18350 Aug 27,2004 08:28 PM UTC Sep 14,2004 03:13 PM UTC WinForms 8
loading
Tags: GridControl
Madhavi Balusu
Asked On August 27, 2004 08:28 PM UTC

I use these events to save and get values for my cell''s tag( e.style.Tag ). Things seem to work fine except when I tab into this cell or enter the cell using Left/Right arrows the cell behaves weird. When I mouse click into the cell, things are fine. When I tab into the cell, for some reason my CurrentCell.IsEditing becomes false where as it should be true. Due to the way my code is setup, this leads me to hiding my usercontrol in the cell and so on. If I forcefully show the usercontrol in that cell, then the control never leaves the cell ( when I click on other cells for example). Any idea why?

Administrator [Syncfusion]
Replied On August 28, 2004 12:49 AM UTC

Try setting the grid.ActivateCurrentCellBehavior to SetCurrent to see if that handles this problem for you.

Madhavi Balusu
Replied On August 30, 2004 04:10 PM UTC

No, that did not help. This problem is only for those cells which have e.style.tag set to an integer value. Those cells whose tags I dont mess around with are fine ( tabs work as they are supposed to ). Any idea?

Administrator [Syncfusion]
Replied On August 30, 2004 05:32 PM UTC

>>reason my CurrentCell.IsEditing becomes false CurrentCell.IsEditing is normally set to true when CurrentCell.BeginEdit() is called. Do you have any custom cell types that you have derived? If so, does your renderer call NotifyCurrentCellChanging as discussed in this forum thread. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=18340

Madhavi Balusu
Replied On August 30, 2004 07:54 PM UTC

I tried to put NotifyCurrentCellChanging in Renderer''s OnSaveChanges and it not work. It''s got something to do with the setting of Tag value. Those cells that are not messed around in QueryCellInfo and SaveCellInfo are working fine. I am attaching these 2 functions, maybe you will see something wrong here: temp_290.zip Thanks!

Administrator [Syncfusion]
Replied On August 30, 2004 08:52 PM UTC

In your SaveCellInfo, when you set e.Handled = true;, this means the grid''s default save code will not be hit, and only the code you provided will be executed. Is this what you want? You might try commenting out this e.Handled code to see it letting the grid''s default code to execute will make a difference.

Madhavi Balusu
Replied On August 30, 2004 08:56 PM UTC

No improvement. I still have the problem.

Administrator [Syncfusion]
Replied On August 30, 2004 09:12 PM UTC

Is the SaveCellInfo code being hit when things do not work? If not, that might suggest NotifyCurrentCellChanging is not being triggered. Normally this is called when you control value is initially changed, and not in OnSaveChanges. If you can post a sample project showing the problem, we can try to spot something here.

Madhavi Balusu
Replied On September 14, 2004 03:13 PM UTC

Hi Clay, Just wanted to update you on this problem. I solved it and the reson for this behavior ( on tabbing cell looses focus ) was that I had: this.DisableTextBox = true; in my Renderer''s OnDraw. Duh!

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.

Warning Icon 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.Close Icon

;