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.


Thread ID:





42942 Apr 10,2006 10:35 PM Apr 19,2006 01:46 AM Windows Forms 10
Tags: Grouping
Asked On April 10, 2006 10:35 PM

I did add two dataset to the GridGroupingControl, and it can show the data(see the code in the attachment). After I add any event in the GridGroupingControl, it cause an error. Even I remove the event, the error still exist(see picture in the attachment). Why?


Administrator [Syncfusion]
Replied On April 11, 2006 05:24 AM

Hi Clement, Your code works fine without throwing any exception. Can you see the issue in the attached sample? Regards, Calvin.


Replied On April 12, 2006 09:54 PM

It still happened in my program, but I did find a solution for solving it. Thanks! Can you provide any sample about how to get the selected record information(both parent and child table) based on the attribute name in dataset? if possible, please send me a drap and drop sample to/out of the GridGroupingControl thanks again... Clement

Administrator [Syncfusion]
Replied On April 13, 2006 03:50 AM

Hi Clement, I have attached a sample, showing how to get the selected record information from parent/child table. Please refer to the below forum thread that has a sample which supports drag and drop for grouped columns and an forum link which has a sample that supports drag and drop for nested table. http://www.syncfusion.com/Support/forums/message.aspx?MessageID=40606 Regards, Calvin.


Replied On April 13, 2006 05:32 AM

Calvin, thanks a lot I try it in my program, and it work properly. But I found that some rows do not have any record it still show the ''+'' symbol in front. Can I hide/remove it if there is no record. Furthermore, when one row is selected in the grid, one cell will be focused and a rectangle box is shown. Can I hide/remove it? thanks! Best Regards, Clement

Administrator [Syncfusion]
Replied On April 13, 2006 10:03 AM

Hi Clement, Please refer to the below forum thread that has a sample which hides the RecordPlusMinus cell when there is no child records. http://www.syncfusion.com/Support/forums/message.aspx?MessageID=42938 And to hide the current cell frame the below code can be tried. this.gridGroupingControl1.TableModel.Options.ShowCurrentCellBorderBehavior = GridShowCurrentCellBorder.HideAlways; Regards, Calvin.

Replied On April 14, 2006 11:04 PM

Thanks Calvin, that''s what I want. About the drag and drop function, it still cannot use in my program. I try to drag one item from ListView to GridGroupingControl. When the mouse move the parent table''s record, the row will be highlighted(because the item can only be dragged to the parent table), it do not allow to dragged to the child table(effect will be changed). After I study your sample, I still cannot make it... Do you have any sample that is similar with the feature I want. Thank you. Regards, Clement

Replied On April 17, 2006 05:03 AM

I have the following questions, please help me to solve it : 1) when I drag an item over the grid, it will automatically highlight the selected record. 2) how to drag the grid''s record to a test box(or other control). Thank you best regards, Clement

Administrator [Syncfusion]
Replied On April 17, 2006 11:31 AM

Hi Clement, Attached is a sample that shows how to highlight the row on drag over and to drag the grid’s record in to a text box. Let us know if you need any further assistance. Regards, Calvin.


Replied On April 18, 2006 12:00 AM

Calvin, thank you very much! I would like to know one more thing : 1) when I drag over the grid, can it move the selected record(or current element) as well? Because I need to get the value of the record when drag leave. thanks

Administrator [Syncfusion]
Replied On April 19, 2006 01:46 AM

Hi Clement, Sorry, I did not get the requirement clearly. To drag and drop in to the grid, the grid DragDrop event must be handled and the record at the mouse position can be retrived as the DataRowView and the dragged data can be inserted in to that purticular record. This was shown clearly in the sample in the below forum thread. http://www.syncfusion.com/support/forums/message.aspx?MessageID=39690 Let us know if you are looking for something different. Regards, Calvin.


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.