Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3219968
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:42:27+00:00 2026-05-17T15:42:27+00:00

Silverlight 4 now provides controls to handle Drag and Drop actions. All the Target

  • 0

Silverlight 4 now provides controls to handle Drag and Drop actions. All the Target Controls seem to inherit from DragDropTarget Like so

public class MyControlDragDropTarget : DragDropTarget<TItemsControlType,TItemsContainerType>

.
.
.

A number of controls have pre-defined DragDropTargets including the DataGrid, ListBox, Panels

Which is all very well, but I want to drag and drop from a grid not a datagrid, and there is no pre-defined one for a normal grid.

I actually want to drag a given row from the grid, but without a Container Type for a Grid I cannot work out how to define a DragDropTarget control for the grid.

Only way I can think is instead of using a grid – I use a listbox (for which there is a DragDropTarget) and then place a StackPanel or Grid in each row (which has one row of ‘n’ columns)

Anyone got any ideas

Ta in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:42:27+00:00Added an answer on May 17, 2026 at 3:42 pm

    A “normal grid” is simply another form of panel, there is no need for specialised DragDropTarget for the Grid, the existing PanelDragDropTarget is sufficient for a “normal grid”.

    Its important grasp that the Grid does not support the concept of “rows containing cells containing UI elements”. The rows and columns of a Grid are entirely equal and are defined purely for layout purposes. UIElement children of a Grid are laid out entirely independently of each other, there is no concept of a set of values belonging to either a column or a row that can be moved or operated on as a group (like picking up a row and dragging it).

    Sounds like you have already got an answer for yourself, use the ListBox instead.

    BTW, DragDropTarget isn’t provided by Silverlight 4 but rather the Silverlight Toolkit. This is an important distinction because the current quality band assigned to DragDropTarget is “Experimental”. You need to think carefully about this if you want to use such code in some production release of your own.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Now that I have installed Silverlight 3, I seem unable to build a Silverlight
We need most handsome Silverlight controls now. It is very important for us to
I'm using Silverlight to develop, and right now I'd like to bind my ComboBox
Is Silverlight for Mobile now available as of today, April 21, 2010? Is it
Any silverlight text to speech engine available now? I am looking for very simple
I'm using silverlight and I defined two styles for the page: ExpanderBottomRightButtonStyle ExpanderScaleStyle Now
I'm using XmlSerializer. I've had no problems with it until now. I updated Silverlight
I've been using LINQ for a while now, but seem to be stuck on
I'm using Silverlight and need to display some OTF fonts. Now Silverlight supports OTF
I have been developing a Lync Silverlight application in Silverlight and now I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.