AD
Administrator
Syncfusion Team
July 26, 2005 04:32 PM UTC
Try handling the grid.TableDescriptor.Columns.Changing/Changed events. Check e.Action to see what the change is.
JU
Jonathan Urban
July 27, 2005 07:47 AM UTC
It doesn''t work with my grid.
Here is my source code. Please Clay, can you tell me, where is my problem?
URL: ftp://sirius.uha.fr/transit/ColumnChanged.zip
THX.
>Try handling the grid.TableDescriptor.Columns.Changing/Changed events. Check e.Action to see what the change is.
AD
Administrator
Syncfusion Team
July 27, 2005 08:19 AM UTC
What version of our library are you using?
With the latest code, in your sample, your messagebox appears when I move a column to another position in the grid. Now if I drag a column to the groupcolumndroparea, then the event is not raised. To catch grouping/ungrouping a column, use:
this.gridProtokoll.TableDescriptor.GroupedColumns.Changed
JU
Jonathan Urban
July 27, 2005 09:40 AM UTC
I use the version 3.2.1.0 of Essential Studio.
>What version of our library are you using?
>
>With the latest code, in your sample, your messagebox appears when I move a column to another position in the grid. Now if I drag a column to the groupcolumndroparea, then the event is not raised. To catch grouping/ungrouping a column, use:
>
>this.gridProtokoll.TableDescriptor.GroupedColumns.Changed
>
AD
Administrator
Syncfusion Team
July 27, 2005 09:59 AM UTC
I tried it with 3.2.1.0 as well (using .NET 1.1). Here is apicture of what I see after moving a column. http://www.syncfusion.com/Support/user/uploads/colmoved_6769f2e2.zip
Are you moving columns or grouping columns? If grouping columns, you have to use the event I mentioned above.
JU
Jonathan Urban
July 27, 2005 11:21 AM UTC
I''m sure I have the right version because this event works with the developper sample Grouping/Filterbar.
And my .NET version is v1.1 too with SP1.
That''s strange...
>I tried it with 3.2.1.0 as well (using .NET 1.1). Here is apicture of what I see after moving a column. http://www.syncfusion.com/Support/user/uploads/colmoved_6769f2e2.zip
>
>Are you moving columns or grouping columns? If grouping columns, you have to use the event I mentioned above.
>
>
JU
Jonathan Urban
July 27, 2005 11:36 AM UTC
Yes, I am moving columns and not grouping columns.
Have an solution?
AD
Administrator
Syncfusion Team
July 27, 2005 12:06 PM UTC
You are using the exact sample you sent me, correct? This is strange as that sample works for me.
If you look at the picture I sent you, in the background, there is the output window. This shows exactly the assemblies that are being used as the sample is run. Can you check your output window and compare your assemblies with teh ones shown in that picture to see if there is a difference?
JU
Jonathan Urban
July 27, 2005 01:31 PM UTC
Here is my output:
''DefaultDomain'': Loaded ''c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll'', No symbols loaded.
''WindowsApplication1'': Loaded ''C:\Documents and Settings\Administrator\Desktop\WindowsApplication1\WindowsApplication1\bin\Debug\WindowsApplication1.exe'', Symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll'', No symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll'', No symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll'', No symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.data.dll'', No symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll'', No symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\syncfusion.grid.grouping.windows\3.201.1.0__3d67ed1f87d44c89\syncfusion.grid.grouping.windows.dll'', No symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\syncfusion.grouping.base\3.201.1.0__3d67ed1f87d44c89\syncfusion.grouping.base.dll'', No symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\syncfusion.core\3.201.1.0__632609b4d040f6b4\syncfusion.core.dll'', No symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\syncfusion.shared.base\3.201.1.0__3d67ed1f87d44c89\syncfusion.shared.base.dll'', No symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\syncfusion.grid.windows\3.201.1.0__3d67ed1f87d44c89\syncfusion.grid.windows.dll'', No symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\syncfusion.tools.windows\3.201.1.0__3d67ed1f87d44c89\syncfusion.tools.windows.dll'', No symbols loaded.
''WindowsApplication1.exe'': Loaded ''c:\windows\assembly\gac\accessibility\1.0.5000.0__b03f5f7f11d50a3a\accessibility.dll'', No symbols loaded.
The program ''[2880] WindowsApplication1.exe'' has exited with code 0 (0x0).
>You are using the exact sample you sent me, correct? This is strange as that sample works for me.
>
>If you look at the picture I sent you, in the background, there is the output window. This shows exactly the assemblies that are being used as the sample is run. Can you check your output window and compare your assemblies with teh ones shown in that picture to see if there is a difference?
AD
Administrator
Syncfusion Team
July 27, 2005 01:44 PM UTC
Seems the same.
What columns are you trying to drag. When your application comes up, I mouse down on the Kunden header and drag it to the left of RTF_Text. Are you doing something different?
JU
Jonathan Urban
July 27, 2005 01:54 PM UTC
>Seems the same.
>
>What columns are you trying to drag. When your application comes up, I mouse down on the Kunden header and drag it to the left of RTF_Text. Are you doing something different?
No, I make the same action that you, but there is no result (as any column header).
I tested this apllication on another station but there are the same problem: Event isn''t cathed...
Why if I catch the same event on your sample application Grouping/filterBar, it works?
AD
Administrator
Syncfusion Team
July 27, 2005 02:40 PM UTC
I know what the problem is. :)
When I opened your sample, I first looked to see what you had done. I looked in the form''s constructor and for a Form.Load event to see what code you had there and what events you were subscribing to. When I didn''t see anything, I opened up the designer generated code and checked there and saw your ColumnChanged event code. Since I was going to add a GroupedColumnsChanged event as well, by reflex, I moved that event subscription line to the constructor after the InitializeComponent call and also subscribed to the GroupedColumns.Changed event as well.
This is what allowed my code to work and yours not to work. The reason is that when the designer subscribed to the Columns.Changed event, the Columns had not been instanciated yet. When they were later instanciated, a new object is created and the earlier subcribed event was lost.
So, try moving the subscription code into the constructor or Form.Load to see if this works for you.
JU
Jonathan Urban
July 28, 2005 08:21 AM UTC
Yeyeye !!! Good job Clay, it was exactly my problem.
Now, I never will edit the automatically generated code ... ;-)
Thx very much !