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.
Syncfusion Feedback

Syncfusion GridDataControl

Thread ID:

Created:

Updated:

Platform:

Replies:

99982 Jun 24,2011 03:55 AM UTC Jun 27,2011 09:46 AM UTC WPF 1
loading
Tags: GridControl
Than Htike Aung
Asked On June 24, 2011 03:55 AM UTC

Hi,

Is there any way to get the Drag and Drop features in Syncfusion GridDataControl please?

For example, we assume there is 20 rows and i will drag the Row 15 and want to drop at Row 1. Then the scroll will go up accrodingly mouse movement to Row 1.

Please help.

Thanks.


Deenadhayalan M [Syncfusion]
Replied On June 27, 2011 09:46 AM UTC

Hi Than,

Sorry for the inconvenience caused.

Currently, Our GridDataControl doesn't support for Drag and drop the rows. We can drag and drop the columns. But you can achieve your requirement by setting the code snippets as follows,

private void Button_Click(object sender, RoutedEventArgs e)
{
if (this.datagrid.Model[20, 0].CellValue.ToString() == "Kevin")
{
//Moving the last item to firstposition in the collection.
Collection.Move(19, 0);

//current cell will be set at 1st position here
this.datagrid.Model.CurrencyManager.CurrentCell.MoveTo(1, 2);

//this method used to bring the current cell in to view by scrolling.
this.datagrid.Model.CurrencyManager.CurrentCell.ScrollInView();
}
}

We have prepared a sample based on this. Please find the sample in the following location.

Please let us know if this helps.

Regards,
Deenadhayalan



GDC_MoveRow_a1002cf0.zip

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.

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

;