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

GCC and tooltip

Thread ID:





41279 Feb 27,2006 11:09 AM UTC Mar 10,2006 08:01 AM UTC WinForms 6
Tags: GridControl
Holger Haidinger
Asked On February 27, 2006 11:09 AM UTC

Hello, I have the following scenario: A GCC is bound to a custom collection of business objects (BO''s). Validation is done by the BO''s itself. A user ends up editing a grid cell. The associated BO becomes invalid. Hence a tooltip (balloon tooltip) shall be shown which informs the user about this problem. What is the best place to accomplish this? (I need a control for the tooltip and the property of the BO must be updated with the cell''s value) I tried two solutions without full success: 1. Event: ''CurrentRecordContextChange'', Action: ''EndEditCalled'': MyGCC.TableControl.CurrentCell.Renderer.Control returns the editing control, but the BO was not updated yet (not validated!). 2. Event: ''CurrentRecordContextChange'', Action: ''EndEditComplete'': The BO was updated successfully (validated!) but MyGCC.TableControl.CurrentCell.Renderer.Control returns a control which is beyound the screen (location: -1000;-1000)

stanleyj [Syncfusion]
Replied On February 28, 2006 05:51 AM UTC

Hi Holger, A sample project will help to solve the issue easier. Can you please try uploading a small sample. Best regards, Stanley

Holger Haidinger
Replied On February 28, 2006 07:41 PM UTC

Hi Stanley, I''ve created a small sample. There is no validation. After editing a ballon tooltip is shown always. Have a look to sub GridGroupingControl1_CurrentRecordContextChange: EndEditCalled: Person is not updated but tooltip is placed correctly. EndEditComplete: Person was upated but tooltip is not placed correctly. The behavior of the GCC is ok. EndEditCalled has a visible Textbox control as a renderer and has not updated the datasource. EndEditComplete has updated the datasource but moved the rendere beyond the screen. so how do I join both?


Holger Haidinger
Replied On March 1, 2006 10:47 AM UTC

Hi Stanley, sorry for the spelling mistake. I mean GGC not GCC.

stanleyj [Syncfusion]
Replied On March 3, 2006 08:30 AM UTC

Hi Holger, Sorry for the delayed response. We are looking through the issue, will get back to you with solution. Best regards, Stanley

stanleyj [Syncfusion]
Replied On March 6, 2006 05:22 AM UTC

Hi Holger, Thank you for the sample. I do not experience a difference regarding the location of the Balloon tooltip for the changes in the EndEditCalled and EndEditComplete. In fact EndEditComplete would alone be the right choice. The difference I see is the usage of mouse or the keyboard that matters, if the current cell is immediately jumped to the next or previous record all works fine with the arrow key movement but not with the mouse button click. One idea is to create a TextBox, placing it behind GGC and by getting the Drawing.Rectangle, that can be positioned to the edited record using TableControl.ElementToRectangle function. So that this textbox that is hidden can be used as a parent for the balloon tooltip without interfering with the current cell control in the grid. Please refer the modified sample. Best regards, Stanley

Holger Haidinger
Replied On March 10, 2006 08:01 AM UTC

Hi Stanley, Thank you for the support. It works fine. Best regards, Holger


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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