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.

GridDataBoundGrid drag row

Thread ID:

Created:

Updated:

Platform:

Replies:

102362 Jan 24,2012 03:37 AM Jan 30,2012 11:24 PM ASP.NET Web Forms (Classic) 3
loading
Tags: GridGroupingControl
Josef Böhm
Asked On January 24, 2012 03:37 AM

I have GridDataBoundGrid. The DataSource was an Collection with Objects (A with some properties). The Class A was shown in the Grid. This is OK.
Now my problem is:
I want drag a row from GridDataBoundGrid into TreeViewAdv.
In the TreeView DragOver method i have the e.Data but this was a UnicodeText. How can i get the Object A or the Row of the grid in the dragover method in the tree?

I need the Class A in the tree to add a node to the tree.

kind regards

Josef Böhm


Ragamathulla B [Syncfusion]
Replied On January 27, 2012 05:13 AM

Hi Josef,

Thank you for your interest in syncfusion products.

We will update you with the respective details for your reported queries, in the incident 90076. Please refer the incident 90076 for follow up. also We suggest you to logon your Direct trac account with your username and password to view your incidents.

Let me know if you have any concern.

Regards,
Ragamathullah B


Josef Böhm
Replied On January 30, 2012 09:28 AM

Info: BindingList is bind as DataSource to gridDataBoundGrid.

I became an answer from the developer team:

To achieve the reported behavior you need to set the custom data object by using the “SetData “ method through “QueryOleDataSourceData “. Please refer the following code.

gridDataBoundGrid.Model.QueryOleDataSourceData += new GridQueryOleDataSourceDataEventHandler(Model_QueryOleDataSourceData);


void Model_QueryOleDataSourceData(object sender, GridQueryOleDataSourceDataEventArgs e)
{

e.DataObject.SetData(typeof(ProductDataObject), e.DataObject.GetData(typeof(ProductDataObject)) as ProductDataObject);

e.Handled = true;
e.Result = true;
}




Ragamathulla B [Syncfusion]
Replied On January 30, 2012 11:24 PM

Hi Josef,

Thanks for the update.

Let me know if you have any further concerns.

Regards,
Ragamathullah B.


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.

;