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.

Questions about grid grouping control

Thread ID:

Created:

Updated:

Platform:

Replies:

51910 Nov 16,2006 05:55 AM Nov 24,2006 04:35 AM Windows Forms 3
loading
Tags: Tools
farhad
Asked On November 16, 2006 05:55 AM

I have two questions about grid grouping control:

1- I have a grid grouping control on my form and whenever I click on it's headers, the form's Deactivate event will be raised, I think this is not as other windows controls which never deactivate their parent form, this behaviour cause me lots of problems because I have some logic in my form's Deactivate event handler.

2- How can I get the exact position of a cell(of type push button) on the screen, I need this info for displaying a form at that position whenever user click that button.

thanks alot,

Administrator [Syncfusion]
Replied On November 16, 2006 07:44 AM

Hi Farhad,

Issue 1: Form's Deactivate event,

We were not able to reproduce the issue here. Could you please post a small sample showing this issue or tell us how to see it in the Attached sample? This will help us to analyse the issue further.

Issue 2 : Get the screen point of the cell.

You can access the GridCellRendereBase and use the GetCellBoundCore method to get rectangle with cell bounds for the specified cell in a grid. Here is a code snippet to show this.

GridCellRendererBase cr = this.gridGroupingControl1.TableControl.GetCellRenderer(row,col);
Rectangle crect = cr.GetCellBoundsCore(row,col);
Rectangle srect = new Rectangle(this.gridGroupingControl1.PointToScreen(crect.Location),crect.Size);

Console.WriteLine("CellLayout : {0} ", srect );
Console.WriteLine("TopLeftPoint of the cell : {0} ", this.gridGroupingControl1.PointToScreen(crect.Location));
Console.WriteLine("Point from Cursor {0}", Cursor.Position);

Here is a sample.
http://www.syncfusion.com/Support/user/uploads/GGCFormCellPt_f8d52c2b.zip

Thanks for your interest in our products.

Best regards,
Haneef

farhad
Replied On November 18, 2006 02:10 AM

Hello Haneef

thank you for the reply.
the solution for screen point works well, but unfortunately the first issue is still a problem,
when I run the application, which attached to your previous post, and click on the header of the grid a message box is shown and after closing it, the same messagebox is shown again.
I am using Syncfusion version 2.1.0.9 and not upgraded to newer versions yet.
any idea will help me a lot.

best regards,
farhad


Administrator [Syncfusion]
Replied On November 24, 2006 04:35 AM

Hi Farhad,

Thanks for being patience.

We have tested the application with Essentail Studio version 2.0 many time, but we haven't reproduce the issue in our system. If you give more information about this issue, we will try debugging here.

Let me know if i am missing something.

Best Regards,
Haneef

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.

;